Skip to content

Commit 550fd07

Browse files
committed
[lsan] Deflake fork_and_leak test
1 parent 7cc681e commit 550fd07

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

compiler-rt/test/lsan/TestCases/Linux/fork_and_leak.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,8 @@ int main() {
1818
assert(WIFEXITED(status));
1919
return WEXITSTATUS(status);
2020
} else {
21-
malloc(1337);
21+
for (int i = 0; i < 10; ++i)
22+
malloc(1337);
2223
// CHECK: LeakSanitizer: detected memory leaks
2324
}
2425
return 0;

0 commit comments

Comments
 (0)