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 | 406ef447074421f91c01c41f0e26fdef937e627c (patch) | |
tree | b5e67ee6b043ccdf16af5422404c5849d1d824ee /utils/lit/tests/discovery.py | |
parent | f2c2b2009016b44b49f41a35c750f1555f68935b (diff) |
lit: Fix infinite recursion when an out-of-tree test root is located inside the source test root.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@179402 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'utils/lit/tests/discovery.py')
-rw-r--r-- | utils/lit/tests/discovery.py | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/utils/lit/tests/discovery.py b/utils/lit/tests/discovery.py index 88a72729af..56d9dd07e8 100644 --- a/utils/lit/tests/discovery.py +++ b/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 |