Skip to content

Commit b54cc81

Browse files
committed
Update spec test repo
Our submodule was accidentally reverted to an older commit as part of bytecodealliance#4271 and while it could be updated to as it was before I went ahead and updated it to `main`.
1 parent cdecc85 commit b54cc81

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

crates/wast/src/wast.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -476,14 +476,14 @@ impl<T> WastContext<T> {
476476

477477
fn is_matching_assert_invalid_error_message(expected: &str, actual: &str) -> bool {
478478
actual.contains(expected)
479-
// `elem.wast` and `proposals/bulk-memory-operations/elem.wast` disagree
480-
// on the expected error message for the same error.
481-
|| (expected.contains("out of bounds") && actual.contains("does not fit"))
482479
// slight difference in error messages
483480
|| (expected.contains("unknown elem segment") && actual.contains("unknown element segment"))
484481
// The same test here is asserted to have one error message in
485482
// `memory.wast` and a different error message in
486483
// `memory64/memory.wast`, so we equate these two error messages to get
487484
// the memory64 tests to pass.
488485
|| (expected.contains("memory size must be at most 65536 pages") && actual.contains("invalid u32 number"))
486+
// the spec test suite asserts a different error message than we print
487+
// for this scenario
488+
|| (expected == "unknown global" && actual.contains("global.get of locally defined global"))
489489
}

tests/spec_testsuite

Submodule spec_testsuite updated 171 files

0 commit comments

Comments
 (0)