[Lldb-commits] [lldb] r370724 - [lldb][NFC] Test that enabling all log options doesn't crash anything
Raphael Isemann via lldb-commits
lldb-commits at lists.llvm.org
Tue Sep 3 02:40:26 PDT 2019
Author: teemperor
Date: Tue Sep 3 02:40:25 2019
New Revision: 370724
URL: http://llvm.org/viewvc/llvm-project?rev=370724&view=rev
Log:
[lldb][NFC] Test that enabling all log options doesn't crash anything
Modified:
lldb/trunk/packages/Python/lldbsuite/test/commands/log/basic/TestLogging.py
Modified: lldb/trunk/packages/Python/lldbsuite/test/commands/log/basic/TestLogging.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/packages/Python/lldbsuite/test/commands/log/basic/TestLogging.py?rev=370724&r1=370723&r2=370724&view=diff
==============================================================================
--- lldb/trunk/packages/Python/lldbsuite/test/commands/log/basic/TestLogging.py (original)
+++ lldb/trunk/packages/Python/lldbsuite/test/commands/log/basic/TestLogging.py Tue Sep 3 02:40:25 2019
@@ -89,3 +89,14 @@ class LogTestCase(TestBase):
# check that it is still there
self.assertEquals(contents.find("bacon"), 0)
+
+ # Enable all log options and check that nothing crashes.
+ def test_all_log_options(self):
+ if (os.path.exists(self.log_file)):
+ os.remove(self.log_file)
+
+ self.runCmd("log enable -v -t -s -T -p -n -S -F -f '%s' lldb commands" % self.log_file)
+ self.runCmd("help log")
+ self.runCmd("log disable lldb")
+
+ self.assertTrue(os.path.isfile(self.log_file))
More information about the lldb-commits
mailing list