Skip to content

Commit

Permalink
[lldb][NFC] Test that enabling all log options doesn't crash anything
Browse files Browse the repository at this point in the history
llvm-svn: 370724
  • Loading branch information
Teemperor committed Sep 3, 2019
1 parent dd18ce4 commit 07ae1bd
Showing 1 changed file with 11 additions and 0 deletions.
Expand Up @@ -89,3 +89,14 @@ def test_log_append(self):

# 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))

0 comments on commit 07ae1bd

Please sign in to comment.