Skip to content

Commit 1d3e26f

Browse files
authored
[test] Unify error messages in memory64/bulk64 (#2045)
Signed-off-by: YiYing He <[email protected]>
1 parent b238495 commit 1d3e26f

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

test/core/memory64/bulk64.wast

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
;; Writing 0 bytes outside of memory limit is NOT allowed.
4040
(assert_trap
4141
(invoke "fill" (i64.const 0x10001) (i32.const 0) (i64.const 0))
42-
"out of bounds")
42+
"out of bounds memory access")
4343

4444
;; memory.copy
4545
(module
@@ -88,7 +88,7 @@
8888
;; Overlap, source < dest but size is out of bounds
8989
(assert_trap
9090
(invoke "copy" (i64.const 13) (i64.const 11) (i64.const -1))
91-
"out of bounds")
91+
"out of bounds memory access")
9292
(assert_return (invoke "load8_u" (i64.const 10)) (i32.const 0))
9393
(assert_return (invoke "load8_u" (i64.const 11)) (i32.const 0xaa))
9494
(assert_return (invoke "load8_u" (i64.const 12)) (i32.const 0xbb))
@@ -108,10 +108,10 @@
108108
;; Copying 0 bytes outside of memory limit is NOT allowed.
109109
(assert_trap
110110
(invoke "copy" (i64.const 0x10001) (i64.const 0) (i64.const 0))
111-
"out of bounds")
111+
"out of bounds memory access")
112112
(assert_trap
113113
(invoke "copy" (i64.const 0) (i64.const 0x10001) (i64.const 0))
114-
"out of bounds")
114+
"out of bounds memory access")
115115

116116
;; memory.init
117117
(module
@@ -138,7 +138,7 @@
138138

139139
;; Out-of-bounds writes trap, and no partial writes has been made.
140140
(assert_trap (invoke "init" (i64.const 0xfffe) (i32.const 0) (i32.const 3))
141-
"out of bounds")
141+
"out of bounds memory access")
142142
(assert_return (invoke "load8_u" (i64.const 0xfffe)) (i32.const 0xcc))
143143
(assert_return (invoke "load8_u" (i64.const 0xffff)) (i32.const 0xdd))
144144

@@ -149,10 +149,10 @@
149149
;; Writing 0 bytes outside of memory / segment limit is NOT allowed.
150150
(assert_trap
151151
(invoke "init" (i64.const 0x10001) (i32.const 0) (i32.const 0))
152-
"out of bounds")
152+
"out of bounds memory access")
153153
(assert_trap
154154
(invoke "init" (i64.const 0) (i32.const 5) (i32.const 0))
155-
"out of bounds")
155+
"out of bounds memory access")
156156

157157
;; OK to access 0 bytes at offset 0 in a dropped segment.
158158
(invoke "init" (i64.const 0) (i32.const 0) (i32.const 0))

0 commit comments

Comments
 (0)