diff options
author | Johnny Chen <johnny.chen@apple.com> | 2012-01-18 19:07:08 +0000 |
---|---|---|
committer | Johnny Chen <johnny.chen@apple.com> | 2012-01-18 19:07:08 +0000 |
commit | 41b780d704d6213051c63db09b99a5b6eb51a451 (patch) | |
tree | 91640dd6cfa79bd3807dd630c13ac4042ec9e8f7 | |
parent | e2d298168c5f35c79015ce6b984c139f18078cda (diff) | |
download | bcm5719-llvm-41b780d704d6213051c63db09b99a5b6eb51a451.tar.gz bcm5719-llvm-41b780d704d6213051c63db09b99a5b6eb51a451.zip |
Add a test case where 'settings set frame-format' supplies a format string containing, among other things, a single backtick character.
rdar://problem/10712130
llvm-svn: 148403
-rw-r--r-- | lldb/test/settings/TestSettings.py | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/lldb/test/settings/TestSettings.py b/lldb/test/settings/TestSettings.py index 2f2ee824ce4..b38a255bb89 100644 --- a/lldb/test/settings/TestSettings.py +++ b/lldb/test/settings/TestSettings.py @@ -57,6 +57,27 @@ class SettingsCommandTestCase(TestBase): self.expect("settings show", SETTING_MSG("term-width"), substrs = ["term-width (int) = 70"]) + #rdar://problem/10712130 + @unittest2.expectedFailure + def test_set_frame_format(self): + """Test that 'set frame-format' with a backtick char in the format string works as well as fullpath.""" + self.buildDefault() + + exe = os.path.join(os.getcwd(), "a.out") + self.runCmd("file " + exe, CURRENT_EXECUTABLE_SET) + + format_string = "frame #${frame.index}: ${frame.pc}{ ${module.file.basename}`${function.name-with-args}{${function.pc-offset}}}{ at ${line.file.fullpath}:${line.number}}\n" + self.runCmd("settings set frame-format %s" % format_string) + + # Immediately test the setting. + self.expect("settings show frame-format", SETTING_MSG("frame-format"), + substrs = [format_string]) + + self.runCmd("breakpoint set -n main") + self.runCmd("run") + self.expect("thread backtrace", + substrs = ["`main", os.getcwd()]) + def test_set_auto_confirm(self): """Test that after 'set auto-confirm true', manual confirmation should not kick in.""" self.buildDefault() |