blob: 5b234a9ad2b2be7145871130214ec7a46cce1e1d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
-- Test if you build module with
-- LLTHREAD_REGISTER_THREAD_LIBRARY
local llthreads = require "llthreads"
local thread = llthreads.new([[
if not package.preload.llthreads then
print("llthreads does not register in thread")
os.exit(-1)
end
local ok, err = pcall(require, "llthreads")
if not ok then
print("can not load llthreads: ", err)
os.exit(-2)
end
]]):start():join()
|