Skip to content

Commit

Permalink
#2068: skip vtAssert test for Intel Classic compiler
Browse files Browse the repository at this point in the history
Test segfaults when built with icpc 2021.8.0.
  • Loading branch information
cz4rs committed Mar 22, 2023
1 parent 6da9a8c commit b0a44b7
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions tests/unit/runtime/test_preconfig.nompi.cc
Original file line number Diff line number Diff line change
Expand Up @@ -51,17 +51,19 @@ namespace vt { namespace tests { namespace unit {

struct TestPreconfig : TestHarness { };

#if not vt_check_enabled(production_build)
TEST_F(TestPreconfig, test_vt_assert) {
#if vt_check_enabled(production_build) or defined(__INTEL_COMPILER)
GTEST_SKIP();
#else
EXPECT_EQ(vt::debug::preConfig()->vt_throw_on_abort, true)
<< "vt_throw_on_abort should be enabled by default";

ASSERT_THROW(
vtAssert(false, "Should throw."),
std::runtime_error
);
}
#endif
}

TEST_F(TestPreconfig, test_vt_abort) {
EXPECT_EQ(vt::debug::preConfig()->vt_throw_on_abort, true)
Expand Down

0 comments on commit b0a44b7

Please sign in to comment.