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
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)