Reviewed and approved by drow@mvista.com.
[deliverable/binutils-gdb.git] / gdb / testsuite / gdb.base / bang.exp
index f5840741f6ba6268545ae80384947fce92f8682f..1e18328613a8c1edb1df0f16e68ae153ad4687bf 100644 (file)
@@ -1,4 +1,4 @@
-# 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
@@ -35,7 +35,13 @@ gdb_reinitialize_dir $srcdir/$subdir
 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)"
+    }
+}
This page took 0.02562 seconds and 4 git commands to generate.