summaryrefslogtreecommitdiff
path: root/test/spec/bulk-memory64.wast
diff options
context:
space:
mode:
Diffstat (limited to 'test/spec/bulk-memory64.wast')
-rw-r--r--test/spec/bulk-memory64.wast14
1 files changed, 7 insertions, 7 deletions
diff --git a/test/spec/bulk-memory64.wast b/test/spec/bulk-memory64.wast
index 2ad60a47d..c9400a750 100644
--- a/test/spec/bulk-memory64.wast
+++ b/test/spec/bulk-memory64.wast
@@ -37,10 +37,10 @@
(invoke "fill" (i64.const 0x10000) (i32.const 0) (i64.const 0))
;; Writing 0 bytes outside of memory limit is NOT allowed.
-(assert_trap (invoke "fill" (i64.const 0x10001) (i32.const 0) (i64.const 0)))
+(assert_trap (invoke "fill" (i64.const 0x10001) (i32.const 0) (i64.const 0)) "oob")
;; Negative size
-(assert_trap (invoke "fill" (i64.const 15) (i32.const 14) (i64.const -2)))
+(assert_trap (invoke "fill" (i64.const 15) (i32.const 14) (i64.const -2)) "oob")
(assert_return (invoke "load8_u" (i64.const 15)) (i32.const 0))
;; memory.copy
@@ -88,7 +88,7 @@
(assert_return (invoke "load8_u" (i64.const 16)) (i32.const 0))
;; Overlap, source < dest but size is out of bounds
-(assert_trap (invoke "copy" (i64.const 13) (i64.const 11) (i64.const -1)))
+(assert_trap (invoke "copy" (i64.const 13) (i64.const 11) (i64.const -1)) "oob")
(assert_return (invoke "load8_u" (i64.const 10)) (i32.const 0))
(assert_return (invoke "load8_u" (i64.const 11)) (i32.const 0xaa))
(assert_return (invoke "load8_u" (i64.const 12)) (i32.const 0xbb))
@@ -106,8 +106,8 @@
(invoke "copy" (i64.const 0) (i64.const 0x10000) (i64.const 0))
;; Copying 0 bytes outside of memory limit is NOT allowed.
-(assert_trap (invoke "copy" (i64.const 0x10001) (i64.const 0) (i64.const 0)))
-(assert_trap (invoke "copy" (i64.const 0) (i64.const 0x10001) (i64.const 0)))
+(assert_trap (invoke "copy" (i64.const 0x10001) (i64.const 0) (i64.const 0)) "oob")
+(assert_trap (invoke "copy" (i64.const 0) (i64.const 0x10001) (i64.const 0)) "oob")
;; memory.init
(module
@@ -143,8 +143,8 @@
(invoke "init" (i64.const 0) (i32.const 4) (i32.const 0))
;; Writing 0 bytes outside of memory / segment limit is NOT allowed.
-(assert_trap (invoke "init" (i64.const 0x10001) (i32.const 0) (i32.const 0)))
-(assert_trap (invoke "init" (i64.const 0) (i32.const 5) (i32.const 0)))
+(assert_trap (invoke "init" (i64.const 0x10001) (i32.const 0) (i32.const 0)) "oob")
+(assert_trap (invoke "init" (i64.const 0) (i32.const 5) (i32.const 0)) "oob")
;; OK to access 0 bytes at offset 0 in a dropped segment.
(invoke "init" (i64.const 0) (i32.const 0) (i32.const 0))