mirror of
https://github.com/ceph/ceph
synced 2025-01-31 23:44:10 +00:00
Merge pull request #25311 from wjwithagen/wjw-fix-cores-EXPECT_DEATH
test: suppress core dumping in there tests as well Reviewed-by: Kefu Chai <kchai@redhat.com>
This commit is contained in:
commit
04fb511d56
@ -8,6 +8,7 @@
|
||||
#include "global/global_context.h"
|
||||
#include "global/global_init.h"
|
||||
#include "common/lockdep.h"
|
||||
#include "include/coredumpctl.h"
|
||||
|
||||
TEST(lockdep, abba)
|
||||
{
|
||||
@ -24,6 +25,7 @@ TEST(lockdep, abba)
|
||||
b.unlock();
|
||||
|
||||
b.lock();
|
||||
PrCtl unset_dumpable;
|
||||
EXPECT_DEATH(a.lock(), "");
|
||||
b.unlock();
|
||||
}
|
||||
@ -34,6 +36,7 @@ TEST(lockdep, recursive)
|
||||
|
||||
ceph::mutex a(ceph::make_mutex("a"));
|
||||
a.lock();
|
||||
PrCtl unset_dumpable;
|
||||
EXPECT_DEATH(a.lock(), "");
|
||||
a.unlock();
|
||||
|
||||
|
@ -32,6 +32,7 @@ TEST(Mutex, NormalAsserts) {
|
||||
Mutex* m = new Mutex("Normal",false);
|
||||
m->Lock();
|
||||
testing::GTEST_FLAG(death_test_style) = "threadsafe";
|
||||
PrCtl unset_dumpable;
|
||||
EXPECT_DEATH(m->Lock(), ".*");
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user