Index: llvm/utils/lit/tests/Inputs/selecting/lit.cfg =================================================================== --- /dev/null +++ llvm/utils/lit/tests/Inputs/selecting/lit.cfg @@ -0,0 +1,3 @@ +# A deliberately empty lit.cfg, so that the test for a nonexistent directory +# doesn't inadvertently try to load lit/tests/lit.site.cfg (which will fail +# in a multi-config environment such as Visual Studio or Xcode). Index: llvm/utils/lit/tests/selecting.py =================================================================== --- llvm/utils/lit/tests/selecting.py +++ llvm/utils/lit/tests/selecting.py @@ -4,8 +4,8 @@ # Check that we exit with an error if we do not discover any tests, even with --allow-empty-runs. # -# RUN: not %{lit} %{inputs}/nonexistent 2>&1 | FileCheck --check-prefix=CHECK-BAD-PATH %s -# RUN: not %{lit} %{inputs}/nonexistent --allow-empty-runs 2>&1 | FileCheck --check-prefix=CHECK-BAD-PATH %s +# RUN: not %{lit} %{inputs}/selecting/nonexistent 2>&1 | FileCheck --check-prefix=CHECK-BAD-PATH %s +# RUN: not %{lit} %{inputs}/selecting/nonexistent --allow-empty-runs 2>&1 | FileCheck --check-prefix=CHECK-BAD-PATH %s # CHECK-BAD-PATH: Did not disover any tests for provided path(s). # Check that we exit with an error if we filter out all tests, but allow it with --allow-empty-runs.