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