]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
test: fix threading for FaultInjector death tests
authorCasey Bodley <cbodley@redhat.com>
Tue, 19 Jan 2021 14:27:13 +0000 (09:27 -0500)
committerAdam C. Emerson <aemerson@redhat.com>
Tue, 1 Feb 2022 14:54:40 +0000 (09:54 -0500)
commit0b959f674832402b4d7a655ad5d1a5dd1403280b
treef22fac08f6acefb21d2e31ff4e6baaa9d95ac797
parent39a81fca78d0954942f94a220af2e6d1e7ae2081
test: fix threading for FaultInjector death tests

addresses test timeout and warning message:

[WARNING] /home/jenkins-build/build/workspace/ceph-pull-requests/src/googletest/googletest/src/gtest-death-test.cc:1121:: Death tests use fork(), which is unsafe particularly in a threaded context. For this test, Google Test detected 3 threads. See https://github.com/google/googletest/blob/master/googletest/docs/advanced.md#death-tests-and-threads for more explanation and suggested solutions, especially if this is the last message you see before your test times out.

Signed-off-by: Casey Bodley <cbodley@redhat.com>
src/test/common/CMakeLists.txt
src/test/common/test_fault_injector.cc