* gdb.base/printcmds.exp (test_print_string_constants): Expect
authorTom Tromey <tromey@redhat.com>
Tue, 17 Sep 2002 17:01:22 +0000 (17:01 +0000)
committerTom Tromey <tromey@redhat.com>
Tue, 17 Sep 2002 17:01:22 +0000 (17:01 +0000)
\000, not \0, in double-quoted string.

gdb/testsuite/ChangeLog
gdb/testsuite/gdb.base/printcmds.exp

index e60796132fa6199bb3392b54db1c693280230d0e..2582161d394d2580ed516fa9e2e8082aec84b979 100644 (file)
@@ -1,3 +1,8 @@
+2002-09-17  Tom Tromey  <tromey@redhat.com>
+
+       * gdb.base/printcmds.exp (test_print_string_constants): Expect
+       \000, not \0, in double-quoted string.
+
 2002-09-14  Corinna Vinschen  <vinschen@redhat.com>
 
        * gdb.base/command.exp: Don't expect a "Program exited normally"
index 7062fc55dc7256a0d781568cda0eee1d8ca0e476..b0232dd62a3ac93cb7d5d0ece48e3342caf402e2 100644 (file)
@@ -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\\\]"