Skip to content

Commit

Permalink
Run trap tests in debug mode
Browse files Browse the repository at this point in the history
Signed-off-by: Tyler Rockwood <[email protected]>
  • Loading branch information
rockwotj committed Jun 9, 2023
1 parent a0009ec commit 19e6adf
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
4 changes: 1 addition & 3 deletions src/v/wasm/tests/wasm_setup_trap_test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,11 @@
#include <seastar/testing/thread_test_case.hh>

FIXTURE_TEST(test_setup_panic, wasm_test_fixture) {
#ifdef NDEBUG
BOOST_CHECK_EXCEPTION(
load_engine("setup-panic.wasm"),
load_wasm("setup-panic.wasm"),
wasm::wasm_exception,
[](const wasm::wasm_exception& ex) {
std::cout << ex.error_code() << ":" << ex.what() << std::endl;
return ex.error_code() == wasm::errc::user_code_failure;
});
#endif
}
2 changes: 0 additions & 2 deletions src/v/wasm/tests/wasm_transform_trap_test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,11 @@
#include <seastar/testing/thread_test_case.hh>

FIXTURE_TEST(test_transform_panic, wasm_test_fixture) {
#ifdef NDEBUG
load_wasm("transform-panic.wasm");
BOOST_CHECK_EXCEPTION(
transform(make_tiny_batch()),
wasm::wasm_exception,
[](const wasm::wasm_exception& ex) {
return ex.error_code() == wasm::errc::user_code_failure;
});
#endif
}

0 comments on commit 19e6adf

Please sign in to comment.