Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -615,6 +615,9 @@ TYPED_TEST(PrimeFieldTest, Msgpack)
EXPECT_EQ(actual, expected);
}

// This test requires exception support; in WASM builds (BB_NO_EXCEPTIONS),
// throw_or_abort calls abort() instead of throwing, so EXPECT_THROW cannot work.
#ifndef BB_NO_EXCEPTIONS
TYPED_TEST(PrimeFieldTest, MsgpackRejectsNonCanonical)
{
using F = TypeParam;
Expand Down Expand Up @@ -654,6 +657,12 @@ TYPED_TEST(PrimeFieldTest, MsgpackRejectsNonCanonical)
},
std::runtime_error);
}
#else
TYPED_TEST(PrimeFieldTest, MsgpackRejectsNonCanonical)
{
GTEST_SKIP() << "Skipping: throw_or_abort calls abort() when BB_NO_EXCEPTIONS is defined";
}
#endif

// ================================
// Montgomery Form Conversion Tests (254-bit fields)
Expand Down
Loading