* gdb.base/charset.exp: Only send a control-C if we see a new
authorJim Blandy <jimb@codesourcery.com>
Fri, 18 Jun 2004 23:12:54 +0000 (23:12 +0000)
committerJim Blandy <jimb@codesourcery.com>
Fri, 18 Jun 2004 23:12:54 +0000 (23:12 +0000)
prompt and incomplete command.

gdb/testsuite/ChangeLog
gdb/testsuite/gdb.base/charset.exp

index 66273355009bce9359a5d0ac0defb02a803db6c0..afd7121406acff90e3f81c85cd5deb038b44076f 100644 (file)
@@ -1,3 +1,8 @@
+2004-06-18  Jim Blandy  <jimb@redhat.com>
+
+       * gdb.base/charset.exp: Only send a control-C if we see a new
+       prompt and incomplete command.
+
 2004-06-18  Michael Chastain  <mec.gnu@mindspring.com>
 
        * gdb.cp/pr-574.cc: Add copyright notice.
index 95021b41db23833f3c8bcd99b01ef52f76603d02..588bf059c77ce6d7d2fc47a69f5d34bdbe48d543 100644 (file)
@@ -140,7 +140,7 @@ gdb_expect {
        # We got some output that ended with a regular prompt
         fail "get valid character sets"
     }
-    -re "^set charset.*$" {
+    -re ".*$gdb_prompt set charset.*$" {
        # We got some other output, send a cntrl-c to gdb to get us back
         # to the prompt.
        send_gdb "\003"
This page took 0.033073 seconds and 4 git commands to generate.