ccb9faf065
Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
11 lines
191 B
Lua
11 lines
191 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))
|
|
print(msg:what():find("interrupted"))
|