diff options
author | Jim Blandy <jimb@codesourcery.com> | 2002-07-19 00:02:34 +0000 |
---|---|---|
committer | Jim Blandy <jimb@codesourcery.com> | 2002-07-19 00:02:34 +0000 |
commit | 0f815cdf7e77a23380ae4a1ff43b2d24117bf3f2 (patch) | |
tree | a1d6d1377a5557e6cbfc17a0e4ba020cb20521d7 /gdb/testsuite/gdb.base | |
parent | 08dcdf1c0c581c8cd7ea84020542fcb205255607 (diff) | |
download | gdb-0f815cdf7e77a23380ae4a1ff43b2d24117bf3f2.zip gdb-0f815cdf7e77a23380ae4a1ff43b2d24117bf3f2.tar.gz gdb-0f815cdf7e77a23380ae4a1ff43b2d24117bf3f2.tar.bz2 |
* 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.
Diffstat (limited to 'gdb/testsuite/gdb.base')
-rw-r--r-- | gdb/testsuite/gdb.base/ending-run.exp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/gdb/testsuite/gdb.base/ending-run.exp b/gdb/testsuite/gdb.base/ending-run.exp index 656601e..69f2b26 100644 --- a/gdb/testsuite/gdb.base/ending-run.exp +++ b/gdb/testsuite/gdb.base/ending-run.exp @@ -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" |