Closed ramosian-glider closed 9 years ago
Simple experiment:
TEST(AddressSanitizer, MultipleDeathTest) {
for (int i = 0; i < 100; i++) {
EXPECT_DEATH(exit(1), "");
}
}
TEST(AddressSanitizer, MultipleDeathAndMallocTest) {
free_aaa(malloc_aaa(1 << 29));
for (int i = 0; i < 100; i++) {
EXPECT_DEATH(exit(1), "");
}
}
The first test runs < 2 seconds, the second test runs 10 seconds.
Looks like the cost of the death test depends on the amount of reserved memory.
Oh my...
Reported by konstantin.s.serebryany
on 2012-06-05 13:36:27
Fixed by reordering tests (r157997.)
Reported by konstantin.s.serebryany
on 2012-06-05 13:49:57
Fixed
Adding Project:AddressSanitizer as part of GitHub migration.
Reported by ramosian.glider
on 2015-07-30 09:12:59
Originally reported on Google Code with ID 77
Reported by
konstantin.s.serebryany
on 2012-06-05 13:23:41