From: Raphael Isemann Date: Tue, 3 Sep 2019 09:40:25 +0000 (+0000) Subject: [lldb][NFC] Test that enabling all log options doesn't crash anything X-Git-Tag: llvmorg-11-init~10207 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=07ae1bd711ad5c817271bba3604ef0fe6ef54834;p=platform%2Fupstream%2Fllvm.git [lldb][NFC] Test that enabling all log options doesn't crash anything llvm-svn: 370724 --- 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))