[compiler-rt] 5c950a3 - [fuzzer][test] Avoid big-file-copy.test on memory constrained devices

Roy Sundahl via llvm-commits llvm-commits at lists.llvm.org
Tue Apr 4 11:02:58 PDT 2023


Author: Roy Sundahl
Date: 2023-04-04T11:02:53-07:00
New Revision: 5c950a3127da7c4121da75df9751208ba2aa9cad

URL: https://github.com/llvm/llvm-project/commit/5c950a3127da7c4121da75df9751208ba2aa9cad
DIFF: https://github.com/llvm/llvm-project/commit/5c950a3127da7c4121da75df9751208ba2aa9cad.diff

LOG: [fuzzer][test] Avoid big-file-copy.test on memory constrained devices

The test "big-file-copy.test" introduced in D146189 and constrained to darwin by
D147094, is by this differential further constrained to only those devices with
sufficient resources. Also correct the test to read the environment variable
"result" from the same shell in which it was stored (which may differ on devices).

Reviewed By: thetruestblue

Differential Revision: https://reviews.llvm.org/D147502

Added: 
    

Modified: 
    compiler-rt/test/fuzzer/big-file-copy.test

Removed: 
    


################################################################################
diff  --git a/compiler-rt/test/fuzzer/big-file-copy.test b/compiler-rt/test/fuzzer/big-file-copy.test
index c1893eafb573e..766c90d5bdced 100644
--- a/compiler-rt/test/fuzzer/big-file-copy.test
+++ b/compiler-rt/test/fuzzer/big-file-copy.test
@@ -1,5 +1,6 @@
 REQUIRES: darwin
+UNSUPPORTED: tvos || watchos
 RUN: %cpp_compiler %S/BigFileCopy.cpp -o %t
 RUN: %run %t -runs=1 -rss_limit_mb=4096 2>big-file-out.txt; result=$?
 RUN: %run rm -f big-file.txt big-file-out.txt
-RUN: %run (exit $result)
+RUN: (exit $result)


        


More information about the llvm-commits mailing list