summaryrefslogtreecommitdiffstats
path: root/lldb/packages/Python/lldbsuite/test
diff options
context:
space:
mode:
Diffstat (limited to 'lldb/packages/Python/lldbsuite/test')
-rw-r--r--lldb/packages/Python/lldbsuite/test/dotest.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/lldb/packages/Python/lldbsuite/test/dotest.py b/lldb/packages/Python/lldbsuite/test/dotest.py
index c7c60a748e4..f8bfec44236 100644
--- a/lldb/packages/Python/lldbsuite/test/dotest.py
+++ b/lldb/packages/Python/lldbsuite/test/dotest.py
@@ -51,6 +51,8 @@ from ..support import seven
def is_exe(fpath):
"""Returns true if fpath is an executable."""
+ if fpath == None:
+ return False
return os.path.isfile(fpath) and os.access(fpath, os.X_OK)
OpenPOWER on IntegriCloud