forked from OSchip/llvm-project
Disable BufferOverflowAfterManyFrees for NetBSD
This test hangs in the i386 mode. llvm-svn: 345666
This commit is contained in:
parent
f739066e8a
commit
9fe6b4d522
|
@ -1295,6 +1295,7 @@ TEST(AddressSanitizer, DISABLED_DemoTooMuchMemoryTest) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#if !defined(__NetBSD__) && !defined(__i386__)
|
||||||
// https://github.com/google/sanitizers/issues/66
|
// https://github.com/google/sanitizers/issues/66
|
||||||
TEST(AddressSanitizer, BufferOverflowAfterManyFrees) {
|
TEST(AddressSanitizer, BufferOverflowAfterManyFrees) {
|
||||||
for (int i = 0; i < 1000000; i++) {
|
for (int i = 0; i < 1000000; i++) {
|
||||||
|
@ -1304,6 +1305,7 @@ TEST(AddressSanitizer, BufferOverflowAfterManyFrees) {
|
||||||
EXPECT_DEATH(x[Ident(8192)] = 0, "AddressSanitizer: heap-buffer-overflow");
|
EXPECT_DEATH(x[Ident(8192)] = 0, "AddressSanitizer: heap-buffer-overflow");
|
||||||
delete [] Ident(x);
|
delete [] Ident(x);
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
|
|
||||||
// Test that instrumentation of stack allocations takes into account
|
// Test that instrumentation of stack allocations takes into account
|
||||||
|
|
Loading…
Reference in New Issue