* gdb.base/ending-run.exp: Don't expect to see the program end in
authorJim Blandy <jimb@codesourcery.com>
Fri, 19 Jul 2002 00:02:34 +0000 (00:02 +0000)
committerJim Blandy <jimb@codesourcery.com>
Fri, 19 Jul 2002 00:02:34 +0000 (00:02 +0000)
some orderly fashion when we're running on a real stand-alone
board.

gdb/testsuite/ChangeLog
gdb/testsuite/gdb.base/ending-run.exp

index e671898b1baf0a86057b46601da1044c67417236..077762756a3d1d2df9c657b084130fdf32bc61e0 100644 (file)
@@ -1,5 +1,9 @@
 2002-07-18  Jim Blandy  <jimb@redhat.com>
 
+       * gdb.base/ending-run.exp: Don't expect to see the program end in
+       some orderly fashion when we're running on a real stand-alone
+       board.
+
        * gdb.base/interrupt.exp: Correct logic for skipping tests on
        targets that don't support interrupts.
 
index 656601efc9863967a5eab46ac0ba285c5cb4fe5f..69f2b26917c9058b95fd623a28e92483c7d01f74 100644 (file)
@@ -229,7 +229,12 @@ gdb_expect {
     timeout { fail "step out of main (hang or timeout on step at end 1)" }
 }
 
-if {![target_info exists use_cygmon] || ![target_info use_cygmon]} {
+# When we're talking to a program running on a real stand-alone board,
+# every BSP's exit function behaves differently, so there's no single
+# way to tell whether we've exited gracefully or not.  So don't run
+# these tests when use_gdb_stub is set, or when we're running under Cygmon.
+if {! [target_info exists use_gdb_stub]
+    && (! [target_info exists use_cygmon] || ! [target_info use_cygmon])} {
     global program_exited;
     if {[eval expr $program_exited == 0]} {
        send_gdb "n\n"