summaryrefslogtreecommitdiff
path: root/gdb/testsuite/gdb.base/printcmds.exp
diff options
context:
space:
mode:
authorTom Tromey <tromey@redhat.com>2010-03-03 18:05:05 +0000
committerTom Tromey <tromey@redhat.com>2010-03-03 18:05:05 +0000
commita0e0ef55c6339931e689918519a756b6a5bcdacb (patch)
tree324acf4bb55cc1cf8c6bbe5eec86501c9ccebaea /gdb/testsuite/gdb.base/printcmds.exp
parent501abfe0387ec3525a997fbf233717f2d5d9d74a (diff)
gdb
2010-03-03 Dainis Jonitis <jonitis@gmail.com> PR gdb/11345: * printcmd.c (printf_command): Print end of format string using printf_filtered. gdb/testsuite 2010-03-03 Tom Tromey <tromey@redhat.com> PR gdb/11345: * gdb.base/printcmds.exp (test_printf): Add test.
Diffstat (limited to 'gdb/testsuite/gdb.base/printcmds.exp')
-rw-r--r--gdb/testsuite/gdb.base/printcmds.exp4
1 files changed, 4 insertions, 0 deletions
diff --git a/gdb/testsuite/gdb.base/printcmds.exp b/gdb/testsuite/gdb.base/printcmds.exp
index 5598bde2a9..9c2cd6be73 100644
--- a/gdb/testsuite/gdb.base/printcmds.exp
+++ b/gdb/testsuite/gdb.base/printcmds.exp
@@ -686,6 +686,10 @@ proc test_printf {} {
# Regression test for C lexer bug.
gdb_test "printf \"%c\\n\", \"x\"\[1,0\]" "x"
+
+ # Regression test for "%% at end of format string.
+ # See http://sourceware.org/bugzilla/show_bug.cgi?id=11345
+ gdb_test "printf \"%%%d%%\\n\", 5" "%5%"
}
#Test printing DFP values with printf