0934d7b2f4
Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
11 lines
189 B
Lua
11 lines
189 B
Lua
|
|
S = State()
|
|
T = thread(S, [[
|
|
sleep(10000)
|
|
]])
|
|
|
|
T:interrupt()
|
|
local ok, msg = pcall(function() T:wait() end)
|
|
assert(not ok)
|
|
assert(is_exception(msg))
|
|
assert(msg:what() == "interrupted")
|