[compiler-rt] r361048 - [libFuzzer] Use SleepOneSecondTest.cpp for fork-sigusr.test.

Matt Morehouse via llvm-commits llvm-commits at lists.llvm.org
Fri May 17 09:56:01 PDT 2019


Author: morehouse
Date: Fri May 17 09:56:01 2019
New Revision: 361048

URL: http://llvm.org/viewvc/llvm-project?rev=361048&view=rev
Log:
[libFuzzer] Use SleepOneSecondTest.cpp for fork-sigusr.test.

ShallowOOMDeepCrash.cpp may hit libFuzzer's RSS limit before the SIGUSR2
is delivered, causing the test to be flaky when bots are under load.
SleepOneSecondTest.cpp will keep running until the signal is delivered.

Modified:
    compiler-rt/trunk/test/fuzzer/fork-sigusr.test

Modified: compiler-rt/trunk/test/fuzzer/fork-sigusr.test
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/test/fuzzer/fork-sigusr.test?rev=361048&r1=361047&r2=361048&view=diff
==============================================================================
--- compiler-rt/trunk/test/fuzzer/fork-sigusr.test (original)
+++ compiler-rt/trunk/test/fuzzer/fork-sigusr.test Fri May 17 09:56:01 2019
@@ -3,9 +3,9 @@
 UNSUPPORTED: darwin, windows
 RUN: rm -rf %t
 RUN: mkdir -p %t
-RUN: %cpp_compiler %S/ShallowOOMDeepCrash.cpp -o %t/ForkSIGUSR
+RUN: %cpp_compiler %S/SleepOneSecondTest.cpp -o %t/ForkSIGUSR
 
-RUN: %run %t/ForkSIGUSR -fork=3 -rss_limit_mb=128 -ignore_crashes=1 2>%t/log & export PID=$!
+RUN: %run %t/ForkSIGUSR -fork=3 -ignore_crashes=1 2>%t/log & export PID=$!
 RUN: sleep 3
 RUN: kill -SIGUSR2 $PID
 RUN: sleep 6




More information about the llvm-commits mailing list