[Lldb-commits] [lldb] r133603 - /lldb/trunk/test/types/TestFailures.py
Johnny Chen
johnny.chen at apple.com
Tue Jun 21 19:49:57 PDT 2011
Author: johnny
Date: Tue Jun 21 21:49:56 2011
New Revision: 133603
URL: http://llvm.org/viewvc/llvm-project?rev=133603&view=rev
Log:
This newly introduced test file (for debugging purpose) needs to handle the case
where the environment variables for log files (DEBUG_LLDB_LOG and DEBUG_GDB_REMOTE_LOG)
are not defined.
Modified:
lldb/trunk/test/types/TestFailures.py
Modified: lldb/trunk/test/types/TestFailures.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/types/TestFailures.py?rev=133603&r1=133602&r2=133603&view=diff
==============================================================================
--- lldb/trunk/test/types/TestFailures.py (original)
+++ lldb/trunk/test/types/TestFailures.py Tue Jun 21 21:49:56 2011
@@ -19,11 +19,16 @@
TestBase.setUp(self)
# If we're lucky, test_long_type_with_dsym fails.
# Let's turn on logging just for that.
- if "test_long_type_with_dsym" in self.id():
- self.runCmd(
- "log enable -n -f %s lldb commands event process state" % os.environ["DEBUG_LLDB_LOG"])
- self.runCmd(
- "log enable -n -f %s gdb-remote packets process" % os.environ["DEBUG_GDB_REMOTE_LOG"])
+ try:
+ if "test_long_type_with_dsym" in self.id():
+ self.runCmd(
+ "log enable -n -f %s lldb commands event process state" %
+ os.environ["DEBUG_LLDB_LOG"])
+ self.runCmd(
+ "log enable -n -f %s gdb-remote packets process" %
+ os.environ["DEBUG_GDB_REMOTE_LOG"])
+ except:
+ pass
def tearDown(self):
# Call super's tearDown().
More information about the lldb-commits
mailing list