llvm-project/compiler-rt/test/fuzzer/features_dir.test
Connie Zhu f25e6515aa
[compiler-rt][test] Added REQUIRES:shell to fuzzer test with for-loop (#105557)
This patch makes the features_dir.test file require a shell when
running. This will make the test file unsupported when running llvm-lit
with its internal shell implementation, which is enabled by turning on
the LIT_USE_INTERNAL_SHELL environment variable. Lit's internal shell
currently does not support for-loop syntax.
2024-08-21 17:26:16 -07:00

8 lines
283 B
Plaintext

# Tests -features_dir=F
# REQUIRES: linux, shell
RUN: %cpp_compiler %S/SimpleTest.cpp -o %t-SimpleTest
RUN: rm -rf %t-C %t-F
RUN: mkdir %t-C %t-F
RUN: not %run %t-SimpleTest %t-C -features_dir=%t-F
RUN: for c in %t-C/*; do f=%t-F/$(basename $c); echo looking for $f; [ -a $f ]; done