From 0deec7d673988ca5e9e7088130f980b566fe901b Mon Sep 17 00:00:00 2001 From: Tom Tromey Date: Tue, 17 Sep 2002 17:01:22 +0000 Subject: [PATCH] * gdb.base/printcmds.exp (test_print_string_constants): Expect \000, not \0, in double-quoted string. --- gdb/testsuite/ChangeLog | 5 +++++ gdb/testsuite/gdb.base/printcmds.exp | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog index e60796132fa..2582161d394 100644 --- a/gdb/testsuite/ChangeLog +++ b/gdb/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2002-09-17 Tom Tromey + + * gdb.base/printcmds.exp (test_print_string_constants): Expect + \000, not \0, in double-quoted string. + 2002-09-14 Corinna Vinschen * gdb.base/command.exp: Don't expect a "Program exited normally" diff --git a/gdb/testsuite/gdb.base/printcmds.exp b/gdb/testsuite/gdb.base/printcmds.exp index 7062fc55dc7..b0232dd62a3 100644 --- a/gdb/testsuite/gdb.base/printcmds.exp +++ b/gdb/testsuite/gdb.base/printcmds.exp @@ -620,7 +620,7 @@ proc test_print_string_constants {} { set timeout 60; gdb_test "p \"a string\"" " = \"a string\"" - gdb_test "p \"embedded \\000 null\"" " = \"embedded \\\\0 null\"" + gdb_test "p \"embedded \\000 null\"" " = \"embedded \\\\000 null\"" gdb_test "p \"abcd\"\[2\]" " = 99 'c'" gdb_test "p sizeof (\"abcdef\")" " = 7" gdb_test "ptype \"foo\"" " = char \\\[4\\\]" -- 2.30.2