[compiler-rt] 182f0ea - [libFuzzer] Modify stop-file.test to support remote devices (#222012)

via llvm-commits llvm-commits at lists.llvm.org
Thu Sep 10 01:44:23 PDT 2026


Author: Dan Blackwell
Date: 2026-09-10T09:44:19+01:00
New Revision: 182f0ea1f8228c893093dabe824f9ad3eea81a60

URL: https://github.com/llvm/llvm-project/commit/182f0ea1f8228c893093dabe824f9ad3eea81a60
DIFF: https://github.com/llvm/llvm-project/commit/182f0ea1f8228c893093dabe824f9ad3eea81a60.diff

LOG: [libFuzzer] Modify stop-file.test to support remote devices (#222012)

Currently this test fails when running on remote devices because the
'rm' command only removes the file from the host, and the second part of
the test expects the file to have been removed. This patch changes the later 
run command to point to a non-existent file in order to work around this.

rdar://186683123

Added: 
    

Modified: 
    compiler-rt/test/fuzzer/stop-file.test

Removed: 
    


################################################################################
diff  --git a/compiler-rt/test/fuzzer/stop-file.test b/compiler-rt/test/fuzzer/stop-file.test
index bfa0d9263f3d8..9084328b7d75d 100644
--- a/compiler-rt/test/fuzzer/stop-file.test
+++ b/compiler-rt/test/fuzzer/stop-file.test
@@ -1,12 +1,10 @@
 RUN: %cpp_compiler %S/AccumulateAllocationsTest.cpp -o %t-AccumulateAllocationsTest
 
 # Fuzzing must stop when the stop file exists, even if the file is empty.
-RUN: rm -f %t.stop_file
 RUN: echo -n "" > %t.stop_file
 RUN: %run %t-AccumulateAllocationsTest -seed=1 -runs=100000 -stop_file=%t.stop_file 2>&1 | FileCheck %s
 CHECK: Done {{[0-9]}} runs
 
 # Fuzzing must not stop when the stop file does not exist.
-RUN: rm -f %t.stop_file
-RUN: %run %t-AccumulateAllocationsTest -seed=1 -runs=1000 -stop_file=%t.stop_file 2>&1 | FileCheck %s --check-prefix=NOSTOP
+RUN: %run %t-AccumulateAllocationsTest -seed=1 -runs=1000 -stop_file=%t.nonexistent_stop_file 2>&1 | FileCheck %s --check-prefix=NOSTOP
 NOSTOP: Done 1000 runs


        


More information about the llvm-commits mailing list