aboutsummaryrefslogtreecommitdiff
path: root/testes/coroutine.lua
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--testes/coroutine.lua8
1 files changed, 4 insertions, 4 deletions
diff --git a/testes/coroutine.lua b/testes/coroutine.lua
index 990da8c4..6c15db03 100644
--- a/testes/coroutine.lua
+++ b/testes/coroutine.lua
@@ -681,7 +681,7 @@ else
681 c == "ERRRUN" and d == 4) 681 c == "ERRRUN" and d == 4)
682 682
683 a, b, c, d = T.testC([[ 683 a, b, c, d = T.testC([[
684 rawgeti R 1 # get main thread 684 rawgeti R !M # get main thread
685 pushnum 10; 685 pushnum 10;
686 pushnum 20; 686 pushnum 20;
687 resume -3 2; 687 resume -3 2;
@@ -699,7 +699,7 @@ else
699 assert(T.testC(state, "newthread; isyieldable -1; remove 1; return 1")) 699 assert(T.testC(state, "newthread; isyieldable -1; remove 1; return 1"))
700 700
701 -- main thread is not yieldable 701 -- main thread is not yieldable
702 assert(not T.testC(state, "rawgeti R 1; isyieldable -1; remove 1; return 1")) 702 assert(not T.testC(state, "rawgeti R !M; isyieldable -1; remove 1; return 1"))
703 703
704 T.testC(state, "settop 0") 704 T.testC(state, "settop 0")
705 705
@@ -711,7 +711,7 @@ else
711 return 'ok']])) 711 return 'ok']]))
712 712
713 local t = table.pack(T.testC(state, [[ 713 local t = table.pack(T.testC(state, [[
714 rawgeti R 1 # get main thread 714 rawgeti R !M # get main thread
715 pushstring 'XX' 715 pushstring 'XX'
716 getglobal X # get function for body 716 getglobal X # get function for body
717 pushstring AA # arg 717 pushstring AA # arg
@@ -720,7 +720,7 @@ else
720 setglobal T # top 720 setglobal T # top
721 setglobal B # second yielded value 721 setglobal B # second yielded value
722 setglobal A # fist yielded value 722 setglobal A # fist yielded value
723 rawgeti R 1 # get main thread 723 rawgeti R !M # get main thread
724 pushnum 5 # arg (noise) 724 pushnum 5 # arg (noise)
725 resume 1 1 # after coroutine ends, previous stack is back 725 resume 1 1 # after coroutine ends, previous stack is back
726 pushstatus 726 pushstatus