From 6116553a91b5da4fd877480bb27fc88b264b737f Mon Sep 17 00:00:00 2001 From: Wouter van Oortmerssen Date: Thu, 17 Sep 2020 10:55:02 -0700 Subject: 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). --- src/tools/wasm-opt.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/tools/wasm-opt.cpp') 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; -- cgit v1.2.3