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

llvm-svn: 223446
This commit is contained in:
Stephane Sezer 2014-12-05 05:02:41 +00:00
parent 39bd119842
commit 7a1d22a2af
1 changed files with 1 additions and 1 deletions

View File

@ -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