Commit 7c7c5d62 authored by Jaikrishnan Menon's avatar Jaikrishnan Menon Committed by Scott Cyphers

Fix incorrect divide-by-zero test (#1243)

parent e8fa980a
......@@ -871,7 +871,25 @@ NGRAPH_TEST(${BACKEND_NAME}, divide_by_zero_int32)
copy_data(b, vector<int>{0, 0, 0, 0});
auto result = backend->create_tensor(element::i32, shape);
EXPECT_ANY_THROW({ backend->call(f, {result}, {a, b}); });
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wused-but-marked-unused"
#pragma clang diagnostic ignored "-Wcovered-switch-default"
::testing::FLAGS_gtest_death_test_style = "threadsafe";
EXPECT_DEATH_IF_SUPPORTED(
{
try
{
backend->call(f, {result}, {a, b});
}
catch (...)
{
abort();
}
},
"");
#pragma clang diagnostic pop
}
NGRAPH_TEST(${BACKEND_NAME}, equal)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment