Skip to content

Commit

Permalink
Update wasm tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
viferga committed Jul 4, 2023
1 parent 19b55d6 commit 3ea1da8
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions source/tests/metacall_wasm_test/source/metacall_wasm_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -182,12 +182,11 @@ TEST_F(metacall_wasm_test, CallFunctions)
ASSERT_EQ((double)4.0, (double)metacall_value_to_double(values[3]));
metacall_value_destroy(ret);

// // It should exit with illegal instruction
// #if defined(unix) || defined(__unix__) || defined(__unix) || defined(linux) || defined(__linux__) || defined(__linux) || defined(__gnu_linux)
// ASSERT_EXIT((metacall("trap"), exit(0)), ::testing::KilledBySignal(SIGILL), ".*");
// #endif

ASSERT_EQ((void *)NULL, metacall("trap"));
// It should exit with illegal instruction
#if defined(unix) || defined(__unix__) || defined(__unix) || \
defined(linux) || defined(__linux__) || defined(__linux) || defined(__gnu_linux)
ASSERT_EXIT((metacall("trap"), exit(0)), ::testing::KilledBySignal(SIGILL), ".*");
#endif
}

TEST_F(metacall_wasm_test, LinkModules)
Expand Down

0 comments on commit 3ea1da8

Please sign in to comment.