]> 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>
Mon, 13 Sep 2021 16:27:50 +0000 (12:27 -0400)
commit68e6b167379791553e3412752539c8d711c32d24
treeeaf113083a3be7aaf558e81a0eadb2fcc5b655f8
parentc0460506e1cedf43018ff139e7fab40a846385c6
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