summaryrefslogtreecommitdiff
path: root/src/tools/wasm-opt.cpp
diff options
context:
space:
mode:
authorWouter van Oortmerssen <aardappel@gmail.com>2020-09-17 10:55:02 -0700
committerGitHub <noreply@github.com>2020-09-17 10:55:02 -0700
commit6116553a91b5da4fd877480bb27fc88b264b737f (patch)
tree0f96e01ec6e618fd012fa97a7b9bbcf4b3fb33d1 /src/tools/wasm-opt.cpp
parent9f7a053bf0ca3185336eb4616f88d85df573adbf (diff)
downloadbinaryen-6116553a91b5da4fd877480bb27fc88b264b737f.tar.gz
binaryen-6116553a91b5da4fd877480bb27fc88b264b737f.tar.bz2
binaryen-6116553a91b5da4fd877480bb27fc88b264b737f.zip
Improve testing on Windows (#3142)
This PR contains: - Changes that enable/disable tests on Windows to allow for better local testing. - Also changes many abort() into Fatal() when it is really just exiting on error. This is because abort() generates a dialog window on Windows which is not great in automated scripts. - Improvements to CMake to better work with the project in IDEs (VS).
Diffstat (limited to 'src/tools/wasm-opt.cpp')
-rw-r--r--src/tools/wasm-opt.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/tools/wasm-opt.cpp b/src/tools/wasm-opt.cpp
index 24ea9c31c..ecf4f1c7c 100644
--- a/src/tools/wasm-opt.cpp
+++ b/src/tools/wasm-opt.cpp
@@ -377,8 +377,7 @@ int main(int argc, const char* argv[]) {
auto secondOutput = runCommand(extraFuzzCommand);
std::cout << "[extra-fuzz-command second output:]\n" << firstOutput << '\n';
if (firstOutput != secondOutput) {
- std::cerr << "extra fuzz command output differs\n";
- abort();
+ Fatal() << "extra fuzz command output differs\n";
}
}
return 0;