diff options
author | Daniel Dunbar <daniel@zuster.org> | 2013-04-12 19:09:09 +0000 |
---|---|---|
committer | Daniel Dunbar <daniel@zuster.org> | 2013-04-12 19:09:09 +0000 |
commit | 175aed579d8327d0433adab18c5725c78ef85bd6 (patch) | |
tree | a52bcac49f6c81601eb2713be632aa59c40ca263 /llvm/utils/lit/tests/discovery.py | |
parent | b5e9727ee53d702f70b0cf7ccd36eed8436d2802 (diff) | |
download | bcm5719-llvm-175aed579d8327d0433adab18c5725c78ef85bd6.tar.gz bcm5719-llvm-175aed579d8327d0433adab18c5725c78ef85bd6.zip |
lit: Fix infinite recursion when an out-of-tree test root is located inside the source test root.
llvm-svn: 179402
Diffstat (limited to 'llvm/utils/lit/tests/discovery.py')
-rw-r--r-- | llvm/utils/lit/tests/discovery.py | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/llvm/utils/lit/tests/discovery.py b/llvm/utils/lit/tests/discovery.py index 88a72729aff..56d9dd07e84 100644 --- a/llvm/utils/lit/tests/discovery.py +++ b/llvm/utils/lit/tests/discovery.py @@ -79,3 +79,18 @@ # # CHECK-ASEXEC-EXACT-TEST: -- Testing: 1 tests, 1 threads -- # CHECK-ASEXEC-EXACT-TEST: PASS: top-level-suite :: subdir/test-three + + +# Check that we don't recurse infinitely when loading an site specific test +# suite located inside the test source root. +# +# RUN: %{lit} \ +# RUN: %{inputs}/exec-discovery-in-tree/obj/ \ +# RUN: -j 1 --no-execute --show-suites -v > %t.out +# RUN: FileCheck --check-prefix=CHECK-ASEXEC-INTREE < %t.out %s +# +# CHECK-ASEXEC-INTREE: exec-discovery-in-tree-suite - 1 tests +# CHECK-ASEXEC-INTREE-NEXT: Source Root: {{.*/exec-discovery-in-tree$}} +# CHECK-ASEXEC-INTREE-NEXT: Exec Root : {{.*/exec-discovery-in-tree/obj$}} +# CHECK-ASEXEC-INTREE-NEXT: -- Testing: 1 tests, 1 threads -- +# CHECK-ASEXEC-INTREE-NEXT: PASS: exec-discovery-in-tree-suite :: test-one |