[llvm] r297543 - [libFuzzer] remove fuzzer-jobs.test which is flaky and not very useful

Kostya Serebryany via llvm-commits llvm-commits at lists.llvm.org
Fri Mar 10 17:48:55 PST 2017


Author: kcc
Date: Fri Mar 10 19:48:54 2017
New Revision: 297543

URL: http://llvm.org/viewvc/llvm-project?rev=297543&view=rev
Log:
[libFuzzer] remove fuzzer-jobs.test which is flaky and not very useful

Removed:
    llvm/trunk/lib/Fuzzer/test/fuzzer-jobs.test

Removed: llvm/trunk/lib/Fuzzer/test/fuzzer-jobs.test
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Fuzzer/test/fuzzer-jobs.test?rev=297542&view=auto
==============================================================================
--- llvm/trunk/lib/Fuzzer/test/fuzzer-jobs.test (original)
+++ llvm/trunk/lib/Fuzzer/test/fuzzer-jobs.test (removed)
@@ -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




More information about the llvm-commits mailing list