From: Tom de Vries Date: Sat, 14 Mar 2020 09:17:10 +0000 (+0100) Subject: [gdb/testsuite] Fix FAIL in gdb.base/printcmds.exp X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=09546b56ede31ca2b401e9b03466e8e1fb84d85f;p=binutils-gdb.git [gdb/testsuite] Fix FAIL in gdb.base/printcmds.exp With test-case gdb.base/printcmds.exp, I run into: ... (gdb) print teststring2^M $563 = (charptr) "more contents"^M (gdb) FAIL: gdb.base/printcmds.exp: print teststring2 ... The corresponding test is: ... gdb_test "print teststring2" " = (charptr) \"more contents\"" ... Fix the FAIL by adding the missing quoting for the parentheses around charptr. Tested on x86_64-linux. gdb/testsuite/ChangeLog: 2020-03-14 Tom de Vries * gdb.base/printcmds.exp: Add missing quoting for "print teststring2". --- diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog index ec22de89d57..9f65a4eaa82 100644 --- a/gdb/testsuite/ChangeLog +++ b/gdb/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2020-03-14 Tom de Vries + + * gdb.base/printcmds.exp: Add missing quoting for "print + teststring2". + 2020-03-13 Tom Tromey * gdb.base/printcmds.exp (test_print_strings): Add regression diff --git a/gdb/testsuite/gdb.base/printcmds.exp b/gdb/testsuite/gdb.base/printcmds.exp index 2c8baad5aa8..066e7fce87b 100644 --- a/gdb/testsuite/gdb.base/printcmds.exp +++ b/gdb/testsuite/gdb.base/printcmds.exp @@ -520,7 +520,7 @@ proc test_print_strings {} { " = (.unsigned char .. )?\"teststring contents\"" "p teststring with elements set to 20" gdb_test "print teststring2" \ - " = (charptr) \"more contents\"" + " = \\(charptr\\) \"more contents\"" gdb_test_no_output "set print elements 8"