[fuzzer][test] Avoid big-file-copy.test on memory constrained devices
authorRoy Sundahl <rsundahl@apple.com>
Tue, 4 Apr 2023 05:10:26 +0000 (22:10 -0700)
committerRoy Sundahl <rsundahl@apple.com>
Tue, 4 Apr 2023 18:02:53 +0000 (11:02 -0700)
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

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

index c1893ea..766c90d 100644 (file)
@@ -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)