summaryrefslogtreecommitdiffstats
path: root/lldb/packages/Python/lldbsuite/test/commands/log/basic/TestLogging.py
diff options
context:
space:
mode:
authorRaphael Isemann <teemperor@gmail.com>2019-09-03 09:40:25 +0000
committerRaphael Isemann <teemperor@gmail.com>2019-09-03 09:40:25 +0000
commit07ae1bd711ad5c817271bba3604ef0fe6ef54834 (patch)
treef6f40c6f0b644021a17c6543d8149a709fb1076e /lldb/packages/Python/lldbsuite/test/commands/log/basic/TestLogging.py
parentdd18ce4501e18e5271f39da6ba3dc594843a0415 (diff)
downloadbcm5719-llvm-07ae1bd711ad5c817271bba3604ef0fe6ef54834.tar.gz
bcm5719-llvm-07ae1bd711ad5c817271bba3604ef0fe6ef54834.zip
[lldb][NFC] Test that enabling all log options doesn't crash anything
llvm-svn: 370724
Diffstat (limited to 'lldb/packages/Python/lldbsuite/test/commands/log/basic/TestLogging.py')
-rw-r--r--lldb/packages/Python/lldbsuite/test/commands/log/basic/TestLogging.py11
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))
OpenPOWER on IntegriCloud