[Lldb-commits] [lldb] r223446 - Fix a crash in dotest.py when the lldb executable is not built.
Stephane Sezer
sas at cd80.net
Thu Dec 4 21:02:41 PST 2014
Author: sas
Date: Thu Dec 4 23:02:41 2014
New Revision: 223446
URL: http://llvm.org/viewvc/llvm-project?rev=223446&view=rev
Log:
Fix a crash in dotest.py when the lldb executable is not built.
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
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=223446&r1=223445&r2=223446&view=diff
==============================================================================
--- lldb/trunk/test/dotest.py (original)
+++ lldb/trunk/test/dotest.py Thu Dec 4 23:02:41 2014
@@ -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
More information about the lldb-commits
mailing list