summaryrefslogtreecommitdiffstats
path: root/llvm/lib
diff options
context:
space:
mode:
authorKostya Serebryany <kcc@google.com>2017-03-11 01:48:54 +0000
committerKostya Serebryany <kcc@google.com>2017-03-11 01:48:54 +0000
commit7939ee4d51b7025bb9324074077ae1f0d06ce2c1 (patch)
treefb9ef1a49599e58f200dd568ba2df14563f475ce /llvm/lib
parent14f5c47c1d72b3f470acba02c46ec3e80ab59fea (diff)
downloadbcm5719-llvm-7939ee4d51b7025bb9324074077ae1f0d06ce2c1.tar.gz
bcm5719-llvm-7939ee4d51b7025bb9324074077ae1f0d06ce2c1.zip
[libFuzzer] remove fuzzer-jobs.test which is flaky and not very useful
llvm-svn: 297543
Diffstat (limited to 'llvm/lib')
-rw-r--r--llvm/lib/Fuzzer/test/fuzzer-jobs.test31
1 files changed, 0 insertions, 31 deletions
diff --git a/llvm/lib/Fuzzer/test/fuzzer-jobs.test b/llvm/lib/Fuzzer/test/fuzzer-jobs.test
deleted file mode 100644
index 035c3afdf69..00000000000
--- a/llvm/lib/Fuzzer/test/fuzzer-jobs.test
+++ /dev/null
@@ -1,31 +0,0 @@
-REQUIRES: posix
-
-RUN: rm -rf %tmp
-RUN: mkdir %tmp && cd %tmp
-# Create a shared corpus directory
-RUN: rm -rf FuzzerJobsTestCORPUS
-RUN: mkdir FuzzerJobsTestCORPUS
-RUN: rm -f fuzz-{0,1}.log
-# Start fuzzer and in parallel check that the output files
-# that should be created exist.
-RUN: LLVMFuzzer-EmptyTest -max_total_time=4 -jobs=2 -workers=2 FuzzerJobsTestCORPUS > %t-fuzzer-jobs-test.log 2>&1 & export FUZZER_PID=$!
-# Wait a short while to give time for the child processes
-# to start fuzzing
-RUN: sleep 2
-# If the instances are running in parallel they should have created their log
-# files by now.
-RUN: ls fuzz-0.log
-RUN: ls fuzz-1.log
-# Wait for libfuzzer to finish.
-# This probably isn't portable but we need a way to block until
-# the fuzzer is done otherwise we might remove the files while
-# they are being used.
-RUN: while kill -0 ${FUZZER_PID}; do : ; done
-RUN: rm -f fuzz-{0,1}.log
-RUN: rm -rf FuzzerJobsTestCORPUS
-RUN: FileCheck -input-file=%t-fuzzer-jobs-test.log %s
-RUN: rm %t-fuzzer-jobs-test.log
-RUN: cd ../
-
-CHECK-DAG: Job 0 exited with exit code 0
-CHECK-DAG: Job 1 exited with exit code 0
OpenPOWER on IntegriCloud