[Lldb-commits] [lldb] r174522 - Fix bug in test harness to allow running dotest.py without "--executable" flag on Linux

Daniel Malea daniel.malea at intel.com
Wed Feb 6 08:55:07 PST 2013


Author: dmalea
Date: Wed Feb  6 10:55:07 2013
New Revision: 174522

URL: http://llvm.org/viewvc/llvm-project?rev=174522&view=rev
Log:
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


Modified:
    lldb/trunk/test/dotest.py

Modified: lldb/trunk/test/dotest.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/dotest.py?rev=174522&r1=174521&r2=174522&view=diff
==============================================================================
--- lldb/trunk/test/dotest.py (original)
+++ lldb/trunk/test/dotest.py Wed Feb  6 10:55:07 2013
@@ -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.
     subprocess.Popen(["/bin/sh", "-c", "kill %s; exit 0" % (os.getpid())])
 
 # Exiting.
-sys.exit(not result.wasSuccessful)
+sys.exit(not result.wasSuccessful())





More information about the lldb-commits mailing list