aboutsummaryrefslogtreecommitdiff
path: root/test/test_register_llthreads.lua
blob: f02bf8623234f586ccc2ea3b858e281e10f3cb0a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
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()