summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHeejin Ahn <aheejin@gmail.com>2019-07-25 20:28:55 -0700
committerGitHub <noreply@github.com>2019-07-25 20:28:55 -0700
commit6ca3f4c80d57bd92c18f028828b889f5c74e10e9 (patch)
tree0cf6aa3f71ebb16bfde1ce17291e776d51968977
parent443c0069df34bac9640ed75e396c8b76d3870ae0 (diff)
downloadbinaryen-6ca3f4c80d57bd92c18f028828b889f5c74e10e9.tar.gz
binaryen-6ca3f4c80d57bd92c18f028828b889f5c74e10e9.tar.bz2
binaryen-6ca3f4c80d57bd92c18f028828b889f5c74e10e9.zip
Enable all features in wasm-shell assert failure tests (#2254)
If we don't enable features in assertion failure tests, new feature tests fail not because they are malformed but because they have unsupported features. It's hard to add tests because existing `assert_invalid` tests were already failing because they have unsupported features.
-rw-r--r--src/tools/wasm-shell.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/tools/wasm-shell.cpp b/src/tools/wasm-shell.cpp
index 652b3a352..4f7624294 100644
--- a/src/tools/wasm-shell.cpp
+++ b/src/tools/wasm-shell.cpp
@@ -142,6 +142,7 @@ static void run_asserts(Name moduleName,
id == ASSERT_UNLINKABLE) {
// a module invalidity test
Module wasm;
+ wasm.features = FeatureSet::All;
bool invalid = false;
std::unique_ptr<SExpressionWasmBuilder> builder;
try {