forked from OSchip/llvm-project
[lsan] Deflake fork_and_leak test
This commit is contained in:
parent
7cc681e641
commit
550fd071ed
|
@ -18,6 +18,7 @@ int main() {
|
||||||
assert(WIFEXITED(status));
|
assert(WIFEXITED(status));
|
||||||
return WEXITSTATUS(status);
|
return WEXITSTATUS(status);
|
||||||
} else {
|
} else {
|
||||||
|
for (int i = 0; i < 10; ++i)
|
||||||
malloc(1337);
|
malloc(1337);
|
||||||
// CHECK: LeakSanitizer: detected memory leaks
|
// CHECK: LeakSanitizer: detected memory leaks
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue