summaryrefslogtreecommitdiffstats
path: root/src/test/ceph_crypto.cc
diff options
context:
space:
mode:
authorAlan Somers <asomers@gmail.com>2013-10-11 22:45:47 +0200
committerNoah Watkins <noahwatkins@gmail.com>2013-11-06 23:08:36 +0100
commit1d030d1ed92c27e33d4ed49eb292b65f69f88917 (patch)
tree76bfc6ed326ffd1643c1ee36bdf2ae1bfe968842 /src/test/ceph_crypto.cc
parentMerge remote-tracking branch 'gh/wip-doc-radosgw' (diff)
downloadceph-1d030d1ed92c27e33d4ed49eb292b65f69f88917.tar.xz
ceph-1d030d1ed92c27e33d4ed49eb292b65f69f88917.zip
test: Only build death tests on platforms that support them
googletest does not support death tests on FreeBSD. I've submitted a patch upstream that trivially enables support, but in the meantime we can't compile death tests for Ceph on FreeBSD. https://groups.google.com/forum/#!topic/googletestframework/tjY6UjWgNOw Signed-off-by: Alan Somers <asomers@gmail.com>
Diffstat (limited to 'src/test/ceph_crypto.cc')
-rw-r--r--src/test/ceph_crypto.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/test/ceph_crypto.cc b/src/test/ceph_crypto.cc
index 2c934fa848c..11d410182a4 100644
--- a/src/test/ceph_crypto.cc
+++ b/src/test/ceph_crypto.cc
@@ -135,6 +135,8 @@ void do_simple_crypto() {
exit(0);
}
+#if GTEST_HAS_DEATH_TEST
TEST_F(ForkDeathTest, MD5) {
ASSERT_EXIT(do_simple_crypto(), ::testing::ExitedWithCode(0), "^$");
}
+#endif //GTEST_HAS_DEATH_TEST