mirror of
https://github.com/ceph/ceph
synced 2025-03-20 01:07:42 +00:00
Merge pull request #830 from ceph/port/gtest-death-tests
test: Only build death tests on platforms that support them
This commit is contained in:
commit
35eaa66da0
@ -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
|
||||
|
@ -41,6 +41,7 @@ TEST(FlatIndex, FlatIndex) {
|
||||
EXPECT_EQ(0, index.cleanup());
|
||||
}
|
||||
|
||||
#ifdef GTEST_HAS_DEATH_TEST
|
||||
TEST(FlatIndex, collection) {
|
||||
coll_t collection("ABC");
|
||||
const std::string base_path("PATH");
|
||||
@ -53,6 +54,7 @@ TEST(FlatIndex, collection) {
|
||||
vector<ghobject_t> ls;
|
||||
ASSERT_DEATH(index.collection_list_partial(hoid, 0, 0, 0, &ls, &hoid), "0");
|
||||
}
|
||||
#endif //GTEST_HAS_DEATH_TEST
|
||||
|
||||
TEST(FlatIndex, created_unlink) {
|
||||
coll_t collection("ABC");
|
||||
|
Loading…
Reference in New Issue
Block a user