[lsan] Deflake fork_and_leak test

This commit is contained in:
Vitaly Buka 2021-12-02 17:29:39 -08:00
parent 7cc681e641
commit 550fd071ed
1 changed files with 2 additions and 1 deletions

View File

@ -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
} }