Project

General

Profile

Bug #3387

Death test bug

Added by Joe Jordan 7 months ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
-
Target version:
-
Affected version - extra info:
Affected version:
Difficulty:
uncategorized
Close

Description

When running "make -j16 check" with the following modules loaded,
1) cuda/10.1
2) cmake/3.13.1
3) fftw/3.3.8-sse2
4) openmpi/4.0.2
5) hwloc/2.0.2

tests with EXPECT_DEATH_IF_SUPPORTED(...) would throw the following error:
Death tests use fork(), which is unsafe particularly in a threaded context. For this test, Google Test detected 3 threads.
The google test documents suggest using
::testing::FLAGS_gtest_death_test_style = "threadsafe";
to solve this issue.
See https://github.com/google/googletest/blob/master/googletest/docs/advanced.md#death-tests-and-threads for more info.

Also available in: Atom PDF