Fix bug in test harness to allow running dotest.py without "--executable" flag on Linux

- resolves errors in cases that run the lldb CLI utility

llvm-svn: 174522
This commit is contained in:
Daniel Malea 2013-02-06 16:55:07 +00:00
parent ac9bde236f
commit 0e1cf09c89
1 changed files with 3 additions and 1 deletions

View File

@ -797,6 +797,8 @@ def setupSysPath():
lldbExec = which('lldb')
if lldbHere and not lldbExec:
lldbExec = lldbHere
if lldbExec and not lldbHere:
lldbHere = lldbExec
if lldbHere:
os.environ["LLDB_HERE"] = lldbHere
@ -1458,4 +1460,4 @@ if ("LLDB_TESTSUITE_FORCE_FINISH" in os.environ):
subprocess.Popen(["/bin/sh", "-c", "kill %s; exit 0" % (os.getpid())])
# Exiting.
sys.exit(not result.wasSuccessful)
sys.exit(not result.wasSuccessful())