Skip to content

Commit

Permalink
[Test] Update core testing data to wasm spec 2022/02/23.
Browse files Browse the repository at this point in the history
  • Loading branch information
q82419 committed Mar 4, 2022
1 parent d274fba commit 967da35
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 8 deletions.
Binary file modified core/binary/binary.161.wasm
Binary file not shown.
Binary file modified core/binary/binary.169.wasm
Binary file not shown.
4 changes: 2 additions & 2 deletions core/binary/binary.json
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@
{"type": "module", "line": 1252, "filename": "binary.128.wasm"},
{"type": "module", "line": 1276, "filename": "binary.129.wasm"},
{"type": "module", "line": 1301, "filename": "binary.130.wasm"},
{"type": "assert_malformed", "line": 1308, "filename": "binary.131.wasm", "text": "unexpected end of section or function", "module_type": "binary"},
{"type": "assert_malformed", "line": 1308, "filename": "binary.131.wasm", "text": "length out of bounds", "module_type": "binary"},
{"type": "assert_malformed", "line": 1319, "filename": "binary.132.wasm", "text": "section size mismatch", "module_type": "binary"},
{"type": "module", "line": 1329, "filename": "binary.133.wasm"},
{"type": "assert_malformed", "line": 1338, "filename": "binary.134.wasm", "text": "malformed import kind", "module_type": "binary"},
Expand All @@ -157,7 +157,7 @@
{"type": "assert_malformed", "line": 1553, "filename": "binary.154.wasm", "text": "unexpected end of section or function", "module_type": "binary"},
{"type": "assert_malformed", "line": 1564, "filename": "binary.155.wasm", "text": "section size mismatch", "module_type": "binary"},
{"type": "module", "line": 1574, "filename": "binary.156.wasm"},
{"type": "assert_malformed", "line": 1587, "filename": "binary.157.wasm", "text": "unexpected end of section or function", "module_type": "binary"},
{"type": "assert_malformed", "line": 1587, "filename": "binary.157.wasm", "text": "length out of bounds", "module_type": "binary"},
{"type": "assert_malformed", "line": 1608, "filename": "binary.158.wasm", "text": "section size mismatch", "module_type": "binary"},
{"type": "module", "line": 1628, "filename": "binary.159.wasm"},
{"type": "assert_malformed", "line": 1642, "filename": "binary.160.wasm", "text": "unexpected end", "module_type": "binary"},
Expand Down
8 changes: 4 additions & 4 deletions core/binary/binary.wast
Original file line number Diff line number Diff line change
Expand Up @@ -1311,7 +1311,7 @@
"\60\00\00" ;; 1st type
;; "\60\00\00" ;; 2nd type (missed)
)
"unexpected end of section or function"
"length out of bounds"
)

;; 1 type declared, 2 given
Expand Down Expand Up @@ -1600,7 +1600,7 @@
"\02\00\0b" ;; function body 0
"\02\00\0b" ;; function body 1
)
"unexpected end of section or function"
"length out of bounds"
)

;; 1 export declared, 2 given
Expand Down Expand Up @@ -1662,7 +1662,7 @@
"\03\02\01\00" ;; func section
"\04\04\01" ;; table section
"\70\00\01" ;; table 0
"\09\07\02" ;; elem with inconsistent segment count (2 declared, 1 given)
"\09\0a\02" ;; elem with inconsistent segment count (2 declared, 1 given)
"\00\41\00\0b\01\00" ;; elem 0
"\00\41\00" ;; elem 1 (partial)
;; "\0b\01\00" ;; elem 1 (missing part)
Expand Down Expand Up @@ -1774,7 +1774,7 @@
"\01\04\01" ;; type section
"\60\00\00" ;; type 0
"\03\02\01\00" ;; func section
"\0a\12\01" ;; code section
"\0a\13\01" ;; code section
"\11\00" ;; func 0
"\02\40" ;; block 0
"\41\01" ;; condition of if 0
Expand Down
2 changes: 1 addition & 1 deletion core/custom/custom.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
{"type": "assert_malformed", "line": 61, "filename": "custom.3.wasm", "text": "unexpected end", "module_type": "binary"},
{"type": "assert_malformed", "line": 69, "filename": "custom.4.wasm", "text": "unexpected end", "module_type": "binary"},
{"type": "assert_malformed", "line": 77, "filename": "custom.5.wasm", "text": "unexpected end", "module_type": "binary"},
{"type": "assert_malformed", "line": 85, "filename": "custom.6.wasm", "text": "unexpected end", "module_type": "binary"},
{"type": "assert_malformed", "line": 85, "filename": "custom.6.wasm", "text": "length out of bounds", "module_type": "binary"},
{"type": "assert_malformed", "line": 93, "filename": "custom.7.wasm", "text": "malformed section id", "module_type": "binary"},
{"type": "assert_malformed", "line": 102, "filename": "custom.8.wasm", "text": "function and code section have inconsistent lengths", "module_type": "binary"},
{"type": "assert_malformed", "line": 115, "filename": "custom.9.wasm", "text": "length out of bounds", "module_type": "binary"},
Expand Down
2 changes: 1 addition & 1 deletion core/custom/custom.wast
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@
"\00asm" "\01\00\00\00"
"\00\26\10" "a custom section" "this is the payload"
)
"unexpected end"
"length out of bounds"
)

(assert_malformed
Expand Down

0 comments on commit 967da35

Please sign in to comment.