Fix a crash in dotest.py when the lldb executable is not built.
authorStephane Sezer <sas@cd80.net>
Fri, 5 Dec 2014 05:02:41 +0000 (05:02 +0000)
committerStephane Sezer <sas@cd80.net>
Fri, 5 Dec 2014 05:02:41 +0000 (05:02 +0000)
Summary: If lldb is not built, dotest.py throws an exception because we are using an unset variable.

Reviewers: clayborg

Subscribers: lldb-commits

Differential Revision: http://reviews.llvm.org/D6516

llvm-svn: 223446

lldb/test/dotest.py

index 0dd9652..bea5d37 100755 (executable)
@@ -1011,7 +1011,7 @@ def setupSysPath():
     # Assume lldb-mi is in same place as lldb
     # If not found, disable the lldb-mi tests
     global dont_do_lldbmi_test
-    if is_exe(lldbExec + "-mi"):
+    if lldbExec and is_exe(lldbExec + "-mi"):
         lldbMiExec = lldbExec + "-mi"
     if not lldbMiExec:
         dont_do_lldbmi_test = True