Skip to content

Commit

Permalink
[fuzzer][test] Avoid big-file-copy.test on memory constrained devices
Browse files Browse the repository at this point in the history
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
  • Loading branch information
rsundahl committed Apr 4, 2023
1 parent 461a559 commit 5c950a3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion compiler-rt/test/fuzzer/big-file-copy.test
Original file line number Diff line number Diff line change
@@ -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)

0 comments on commit 5c950a3

Please sign in to comment.