[compiler-rt] 550fd07 - [lsan] Deflake fork_and_leak test
Vitaly Buka via llvm-commits
llvm-commits at lists.llvm.org
Thu Dec 2 18:06:13 PST 2021
Author: Vitaly Buka
Date: 2021-12-02T18:06:04-08:00
New Revision: 550fd071edde1ae019e96abebe00d4442b210204
URL: https://github.com/llvm/llvm-project/commit/550fd071edde1ae019e96abebe00d4442b210204
DIFF: https://github.com/llvm/llvm-project/commit/550fd071edde1ae019e96abebe00d4442b210204.diff
LOG: [lsan] Deflake fork_and_leak test
Added:
Modified:
compiler-rt/test/lsan/TestCases/Linux/fork_and_leak.cpp
Removed:
################################################################################
diff --git a/compiler-rt/test/lsan/TestCases/Linux/fork_and_leak.cpp b/compiler-rt/test/lsan/TestCases/Linux/fork_and_leak.cpp
index 758cd819f16e8..1f54d296e93f4 100644
--- a/compiler-rt/test/lsan/TestCases/Linux/fork_and_leak.cpp
+++ b/compiler-rt/test/lsan/TestCases/Linux/fork_and_leak.cpp
@@ -18,7 +18,8 @@ int main() {
assert(WIFEXITED(status));
return WEXITSTATUS(status);
} else {
- malloc(1337);
+ for (int i = 0; i < 10; ++i)
+ malloc(1337);
// CHECK: LeakSanitizer: detected memory leaks
}
return 0;
More information about the llvm-commits
mailing list