diff options
-rw-r--r-- | lldb/test/settings/TestSettings.py | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/lldb/test/settings/TestSettings.py b/lldb/test/settings/TestSettings.py index 35ee4be938b..c45478cc9f5 100644 --- a/lldb/test/settings/TestSettings.py +++ b/lldb/test/settings/TestSettings.py @@ -2,7 +2,7 @@ Test lldb settings command. """ -import os, time +import os, time, re import unittest2 import lldb from lldbtest import * @@ -122,7 +122,11 @@ class SettingsCommandTestCase(TestBase): self.addTearDownHook(cleanup) self.runCmd("settings show frame-format") - self.format_string = self.res.GetOutput() + m = re.match( + '^frame-format \(string\) = "(.*)\"$', + self.res.GetOutput()) + self.assertTrue(m, "Bad settings string") + self.format_string = m.group(1) # Change the default format to print function.name rather than function.name-with-args format_string = "frame #${frame.index}: ${frame.pc}{ ${module.file.basename}`${function.name}{${function.pc-offset}}}{ at ${line.file.fullpath}:${line.number}}\n" |