From 7a1d22a2afee76e91ed77d55456ec2978cba6c92 Mon Sep 17 00:00:00 2001 From: Stephane Sezer Date: Fri, 5 Dec 2014 05:02:41 +0000 Subject: [PATCH] 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 --- lldb/test/dotest.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lldb/test/dotest.py b/lldb/test/dotest.py index 0dd9652a..bea5d37 100755 --- a/lldb/test/dotest.py +++ b/lldb/test/dotest.py @@ -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 -- 2.7.4