aboutsummaryrefslogtreecommitdiff
path: root/test/test_register_llthreads.lua
diff options
context:
space:
mode:
authormoteus <mimir@newmail.ru>2013-12-26 14:34:13 +0400
committermoteus <mimir@newmail.ru>2013-12-26 14:45:02 +0400
commit92ec624951de2d344b28eb5262a3534822f6d6a7 (patch)
tree793f5c5ab09f05e0462489678b5186bb588d0b4a /test/test_register_llthreads.lua
parent7b90a331bf1caecfa1ba1e2f3e7f87fa01c389b9 (diff)
downloadlua-llthreads2-92ec624951de2d344b28eb5262a3534822f6d6a7.tar.gz
lua-llthreads2-92ec624951de2d344b28eb5262a3534822f6d6a7.tar.bz2
lua-llthreads2-92ec624951de2d344b28eb5262a3534822f6d6a7.zip
Add. timeout parameter to thread:join() method
Diffstat (limited to 'test/test_register_llthreads.lua')
-rw-r--r--test/test_register_llthreads.lua12
1 files changed, 12 insertions, 0 deletions
diff --git a/test/test_register_llthreads.lua b/test/test_register_llthreads.lua
new file mode 100644
index 0000000..f02bf86
--- /dev/null
+++ b/test/test_register_llthreads.lua
@@ -0,0 +1,12 @@
1local llthreads = require "llthreads"
2local thread = llthreads.new([[
3 if not package.preload.llthreads then
4 print("llthreads does not register in thread")
5 os.exit(-1)
6 end
7 local ok, err = pcall(require, "llthreads")
8 if not ok then
9 print("can not load llthreads: ", err)
10 os.exit(-2)
11 end
12]]):start():join()