summaryrefslogtreecommitdiffstats
path: root/llvm/utils/lit/tests/discovery.py
diff options
context:
space:
mode:
authorDaniel Dunbar <daniel@zuster.org>2013-04-12 19:09:09 +0000
committerDaniel Dunbar <daniel@zuster.org>2013-04-12 19:09:09 +0000
commit175aed579d8327d0433adab18c5725c78ef85bd6 (patch)
treea52bcac49f6c81601eb2713be632aa59c40ca263 /llvm/utils/lit/tests/discovery.py
parentb5e9727ee53d702f70b0cf7ccd36eed8436d2802 (diff)
downloadbcm5719-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.py15
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
OpenPOWER on IntegriCloud