[Lldb-commits] [lldb] r139920 - /lldb/trunk/test/dotest.py
Johnny Chen
johnny.chen at apple.com
Fri Sep 16 11:03:19 PDT 2011
Author: johnny
Date: Fri Sep 16 13:03:19 2011
New Revision: 139920
URL: http://llvm.org/viewvc/llvm-project?rev=139920&view=rev
Log:
To be more paranoid, check cmd_output before searching in it.
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=139920&r1=139919&r2=139920&view=diff
==============================================================================
--- lldb/trunk/test/dotest.py (original)
+++ lldb/trunk/test/dotest.py Fri Sep 16 13:03:19 2011
@@ -799,7 +799,7 @@
cmd = ["defaults", "read", "com.apple.DebugSymbols"]
pipe = subprocess.Popen(cmd, stdout = subprocess.PIPE, stderr = subprocess.STDOUT)
cmd_output = pipe.stdout.read()
- if "DBGFileMappedPaths = " in cmd_output:
+ if cmd_output and "DBGFileMappedPaths = " in cmd_output:
print "Executing: '%s' =>" % ' '.join(cmd)
print cmd_output
print "Disable automatic lookup and caching of dSYMs before running the test suite!"
More information about the lldb-commits
mailing list