Skip to content

Commit c956fde

Browse files
committed
Add test/validation/resources.wast, update nyi.txt and some other .wast tests
1 parent 9e8e0ae commit c956fde

4 files changed

Lines changed: 583 additions & 7 deletions

File tree

test/async/trap-if-sync-and-waitable-set.wast

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030

3131
(core module $m
3232
(import "" "thread.new-indirect" (func $thread.new-indirect (param i32 i32) (result i32)))
33-
(import "" "thread.yield-to-suspended" (func $thread.yield-to-suspended (param i32) (result i32)))
33+
(import "" "thread.yield-then-resume" (func $thread.yield-then-resume (param i32) (result i32)))
3434
(import "" "waitable-set.new" (func $waitable-set.new (result i32)))
3535
(import "" "waitable.join" (func $waitable.join (param i32 i32)))
3636
(import "" "subtask.cancel-sync" (func $subtask.cancel-sync (param i32) (result i32)))
@@ -64,7 +64,7 @@
6464
(i32.wrap_i64 (i64.shr_u (call $stream.new) (i64.const 32)))
6565
)
6666
(func $spawn-and-yield (param $idx i32) (param $arg i32)
67-
(drop (call $thread.yield-to-suspended
67+
(drop (call $thread.yield-then-resume
6868
(call $thread.new-indirect (local.get $idx) (local.get $arg))))
6969
)
7070
(func $assert-blocked (param $ret i32)
@@ -197,7 +197,7 @@
197197
(alias core export $memTable "ftbl" (core table $ftbl))
198198

199199
(core func $thread.new-indirect (canon thread.new-indirect $start-func-ty (table $ftbl)))
200-
(core func $thread.yield-to-suspended (canon thread.yield-to-suspended))
200+
(core func $thread.yield-then-resume (canon thread.yield-then-resume))
201201
(core func $waitable-set.new (canon waitable-set.new))
202202
(core func $waitable.join (canon waitable.join))
203203
(core func $subtask.cancel-sync (canon subtask.cancel))
@@ -222,7 +222,7 @@
222222
(core instance $m (instantiate $m
223223
(with "" (instance
224224
(export "thread.new-indirect" (func $thread.new-indirect))
225-
(export "thread.yield-to-suspended" (func $thread.yield-to-suspended))
225+
(export "thread.yield-then-resume" (func $thread.yield-then-resume))
226226
(export "waitable-set.new" (func $waitable-set.new))
227227
(export "waitable.join" (func $waitable.join))
228228
(export "subtask.cancel-sync" (func $subtask.cancel-sync))

test/async/trap-if-transfer-in-waitable-set.wast

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,6 @@
4646
)
4747

4848
(component instance $i1 $Tester)
49-
(assert_trap (invoke "return-future-in-set") "cannot lift future in a waitable set")
49+
(assert_trap (invoke "return-future-in-set") "cannot lift future while it's in a waitable set")
5050
(component instance $i2 $Tester)
51-
(assert_trap (invoke "return-stream-in-set") "cannot lift stream in a waitable set")
51+
(assert_trap (invoke "return-stream-in-set") "cannot lift stream while it's in a waitable set")

test/nyi.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@
22
./wasm-tools/memory64.wast
33
./wasm-tools/resources.wast
44
./async/trap-if-sync-and-waitable-set.wast
5-
./async/trap-if-transfer-in-waitable-set.wast
5+
./validation/implements.wast

0 commit comments

Comments
 (0)