diff options
Diffstat (limited to 'lldb/packages/Python/lldbsuite/test')
-rw-r--r-- | lldb/packages/Python/lldbsuite/test/commands/log/basic/TestLogging.py | 11 |
1 files changed, 11 insertions, 0 deletions
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 7efcce6f7ca..cc3cc1155e0 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)) |