Commit 7c2793d4 authored by JINMEI Tatuya's avatar JINMEI Tatuya
Browse files

[master] skip EXPECT_DEATH if run-on-valgrind to avoid possible false positives

(and also following our convention) okayed on jabber.
parent 780a3b3b
......@@ -242,8 +242,10 @@ TEST_F(MemorySegmentMappedTest, badAllocate) {
const int ret = chmod(mapped_file, 0444);
ASSERT_EQ(0, ret);
EXPECT_DEATH_IF_SUPPORTED(
{segment_->allocate(DEFAULT_INITIAL_SIZE * 2);}, "");
if (!isc::util::unittests::runningOnValgrind()) {
EXPECT_DEATH_IF_SUPPORTED(
{segment_->allocate(DEFAULT_INITIAL_SIZE * 2);}, "");
}
}
// XXX: this test can cause too strong side effect (creating a very large
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment