Skip to content

Commit

Permalink
Update spec test repo
Browse files Browse the repository at this point in the history
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`.
  • Loading branch information
alexcrichton committed Sep 28, 2022
1 parent cdecc85 commit b54cc81
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions crates/wast/src/wast.rs
Original file line number Diff line number Diff line change
Expand Up @@ -476,14 +476,14 @@ impl<T> WastContext<T> {

fn is_matching_assert_invalid_error_message(expected: &str, actual: &str) -> bool {
actual.contains(expected)
// `elem.wast` and `proposals/bulk-memory-operations/elem.wast` disagree
// on the expected error message for the same error.
|| (expected.contains("out of bounds") && actual.contains("does not fit"))
// slight difference in error messages
|| (expected.contains("unknown elem segment") && actual.contains("unknown element segment"))
// The same test here is asserted to have one error message in
// `memory.wast` and a different error message in
// `memory64/memory.wast`, so we equate these two error messages to get
// the memory64 tests to pass.
|| (expected.contains("memory size must be at most 65536 pages") && actual.contains("invalid u32 number"))
// the spec test suite asserts a different error message than we print
// for this scenario
|| (expected == "unknown global" && actual.contains("global.get of locally defined global"))
}
2 changes: 1 addition & 1 deletion tests/spec_testsuite
Submodule spec_testsuite updated 171 files

0 comments on commit b54cc81

Please sign in to comment.