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
This commit is contained in:
Daniel Dunbar
2013-04-12 19:09:09 +00:00
parent f2c2b20090
commit 406ef44707
5 changed files with 47 additions and 9 deletions

View File

@@ -0,0 +1,7 @@
# Verify that the site configuration was loaded.
if config.test_source_root is None or config.test_exec_root is None:
lit.fatal("No site specific configuration")
config.name = 'exec-discovery-in-tree-suite'
config.suffixes = ['.txt']
config.test_format = lit.formats.ShTest()

View File

@@ -0,0 +1,4 @@
import os
config.test_exec_root = os.path.dirname(__file__)
config.test_source_root = os.path.dirname(config.test_exec_root)
lit.load_config(config, os.path.join(config.test_source_root, "lit.cfg"))

View File

@@ -0,0 +1 @@
# RUN: true