diff options
Diffstat (limited to 'gdb/testsuite/gdb.base/a2-run.exp')
-rw-r--r-- | gdb/testsuite/gdb.base/a2-run.exp | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/gdb/testsuite/gdb.base/a2-run.exp b/gdb/testsuite/gdb.base/a2-run.exp index 4e95e56..0df7558 100644 --- a/gdb/testsuite/gdb.base/a2-run.exp +++ b/gdb/testsuite/gdb.base/a2-run.exp @@ -18,6 +18,8 @@ # Can't do this test without stdio support. require {!gdb_skip_stdio_test "a2run.exp"} +set have_startup_shell [have_startup_shell] + # # test running programs # @@ -153,7 +155,7 @@ gdb_test_stdio "" "usage: factorial <number>" "" "run after setting args to nil # work with stub targets, where GDB connects to debug an already started # process. -if [use_gdb_stub] { +if {[use_gdb_stub]} { verbose "Skipping rest of a2-run.exp because target is a stub." return } @@ -166,9 +168,8 @@ gdb_run_cmd setup_xfail "arm-*-coff" gdb_test_stdio "" "720" "" "run \"$testfile\" again after setting args" -# GOAL: Test that shell is being used with "run". For remote debugging -# targets, there is no guarantee that a "shell" (whatever that is) is used. -if {![is_remote target]} { +# GOAL: Test that shell is being used with "run". +if { $have_startup_shell == 1 } { gdb_test_stdio "run `echo 8`" \ "40320" "" "run \"$testfile\" with shell" } |