From b0a44b769ed8920fe297351a16e880441ab91cb8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cezary=20Skrzy=C5=84ski?= Date: Tue, 21 Mar 2023 19:08:19 +0100 Subject: [PATCH] #2068: skip vtAssert test for Intel Classic compiler Test segfaults when built with icpc 2021.8.0. --- tests/unit/runtime/test_preconfig.nompi.cc | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/tests/unit/runtime/test_preconfig.nompi.cc b/tests/unit/runtime/test_preconfig.nompi.cc index 57b745690d..1ae2658a39 100644 --- a/tests/unit/runtime/test_preconfig.nompi.cc +++ b/tests/unit/runtime/test_preconfig.nompi.cc @@ -51,8 +51,10 @@ 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"; @@ -60,8 +62,8 @@ TEST_F(TestPreconfig, test_vt_assert) { vtAssert(false, "Should throw."), std::runtime_error ); -} #endif +} TEST_F(TestPreconfig, test_vt_abort) { EXPECT_EQ(vt::debug::preConfig()->vt_throw_on_abort, true)