2004-02-02 Fred Fish <fnf@redhat.com>
* gdb.base/bang.exp: Use gdb_run_cmd so this tests works with
remote targets. Update copyright years.
+2004-02-02 Fred Fish <fnf@redhat.com>
+
+ * gdb.base/bang.exp: Use gdb_run_cmd so this tests works with
+ remote targets. Update copyright years.
+
2004-02-02 Jeff Johnston <jjohnstn@redhat.com>
* lib/gdb.exp (gdb_breakpoint): Add pending breakpoint
-# Copyright 2003 Free Software Foundation, Inc.
+# Copyright 2003, 2004 Free Software Foundation, Inc.
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
gdb_load ${binfile}
# Verify that we can run the program and that it terminates normally.
-gdb_test "run" \
- ".*Program exited normally\." \
- "run program"
+gdb_run_cmd
+gdb_expect {
+ -re ".*Program exited normally\.\r\n$gdb_prompt $" {
+ pass "run program"
+ }
+ timeout {
+ fail "run program (timeout)"
+ }
+}