From 07ae1bd711ad5c817271bba3604ef0fe6ef54834 Mon Sep 17 00:00:00 2001 From: Raphael Isemann Date: Tue, 3 Sep 2019 09:40:25 +0000 Subject: [PATCH] [lldb][NFC] Test that enabling all log options doesn't crash anything llvm-svn: 370724 --- .../Python/lldbsuite/test/commands/log/basic/TestLogging.py | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/lldb/packages/Python/lldbsuite/test/commands/log/basic/TestLogging.py b/lldb/packages/Python/lldbsuite/test/commands/log/basic/TestLogging.py index 7efcce6..cc3cc11 100644 --- a/lldb/packages/Python/lldbsuite/test/commands/log/basic/TestLogging.py +++ b/lldb/packages/Python/lldbsuite/test/commands/log/basic/TestLogging.py @@ -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)) -- 2.7.4