diff options
author | Pedro Alves <palves@redhat.com> | 2014-09-16 12:37:03 +0100 |
---|---|---|
committer | Pedro Alves <palves@redhat.com> | 2014-09-16 12:37:03 +0100 |
commit | 428b16bd5a3947e3a608f0c6751a8be7dbd88959 (patch) | |
tree | 7249fef5be6770ae9d594ff815e8c0e426a480d3 /gdb/testsuite/gdb.base/a2-run.exp | |
parent | Another board file for remote host (diff) | |
download | binutils-gdb-428b16bd5a3947e3a608f0c6751a8be7dbd88959.tar.gz binutils-gdb-428b16bd5a3947e3a608f0c6751a8be7dbd88959.tar.bz2 binutils-gdb-428b16bd5a3947e3a608f0c6751a8be7dbd88959.zip |
Remove support for testing against dead "target vxworks"
"target vxworks" and friends have been removed 10 years ago already:
commit e84ecc995d6a5e4e9114d3cea61717b8a573afb6
Author: Andrew Cagney <cagney@redhat.com>
AuthorDate: Sat Nov 13 23:10:02 2004 +0000
2004-11-13 Andrew Cagney <cagney@gnu.org>
* configure.tgt: Delete i[34567]86-*-vxworks*, m68*-netx-*,
m68*-*-vxworks*, mips*-*-vxworks*, powerpc-*-vxworks*, and
sparc-*-vxworks*.
* NEWS: Mention that vxworks was deleted.
(...)
* remote-vxmips.c, remote-vx.c: Delete.
* remote-vx68.c: Delete.
(...)
This removes related leftover cruft from the testsuite.
Tested on x86_64 Fedora 20, native and gdbserver.
gdb/testsuite/
2014-09-16 Pedro Alves <palves@redhat.com>
* config/vx.exp, config/vxworks.exp, config/vxworks29k.exp: Delete
files.
* gdb.base/a2-run.exp: Remove all code guarded by istarget
"*-*-vxworks*" throughout.
* gdb.base/break.exp: Likewise.
* gdb.base/default.exp: Likewise.
* gdb.base/scope.exp: Likewise.
* gdb.base/sepdebug.exp: Likewise.
* gdb.base/break.c: Remove all code guarded by #ifdef vxworks
throughout.
* gdb.base/run.c: Likewise.
* gdb.base/sepdebug.c: Likewise.
* gdb.hp/gdb.aCC/run.c: Likewise.
* gdb.reverse/until-reverse.c: Likewise.
* lib/gdb.exp (gdb_compile): Remove is_vxworks branch.
Diffstat (limited to 'gdb/testsuite/gdb.base/a2-run.exp')
-rw-r--r-- | gdb/testsuite/gdb.base/a2-run.exp | 144 |
1 files changed, 26 insertions, 118 deletions
diff --git a/gdb/testsuite/gdb.base/a2-run.exp b/gdb/testsuite/gdb.base/a2-run.exp index 10aaf670013..fc8760298c4 100644 --- a/gdb/testsuite/gdb.base/a2-run.exp +++ b/gdb/testsuite/gdb.base/a2-run.exp @@ -31,31 +31,26 @@ if { [prepare_for_testing ${testfile}.exp $testfile $srcfile] } { } # Run with no arguments. -# On VxWorks this justs make sure the program was run. gdb_run_cmd set test "run \"$testfile\" with no args" -if [istarget "*-*-vxworks*"] then { - gdb_test "" "usage: factorial <number>.*" $test -} else { - gdb_test_multiple "" $test { - -re ".*usage: factorial <number>.*$inferior_exited_re with code 01.\r\n$gdb_prompt $" { - pass $test - pass "no spurious messages at program exit" - } - -re ".*usage: factorial <number>.*$inferior_exited_re with code 01.*$gdb_prompt $" { - pass $test - fail "no spurious messages at program exit" - } - -re ".*usage: factorial <number>.* EXIT code 1.*$inferior_exited_re normally.\r\n$gdb_prompt $" { - pass "$test (exit wrapper)" - pass "no spurious messages at program exit" - } - -re ".*usage: factorial <number>.* EXIT code 1.*$inferior_exited_re normally.*$gdb_prompt $" { - pass "$test (exit wrapper)" - fail "no spurious messages at program exit" - } +gdb_test_multiple "" $test { + -re ".*usage: factorial <number>.*$inferior_exited_re with code 01.\r\n$gdb_prompt $" { + pass $test + pass "no spurious messages at program exit" + } + -re ".*usage: factorial <number>.*$inferior_exited_re with code 01.*$gdb_prompt $" { + pass $test + fail "no spurious messages at program exit" + } + -re ".*usage: factorial <number>.* EXIT code 1.*$inferior_exited_re normally.\r\n$gdb_prompt $" { + pass "$test (exit wrapper)" + pass "no spurious messages at program exit" + } + -re ".*usage: factorial <number>.* EXIT code 1.*$inferior_exited_re normally.*$gdb_prompt $" { + pass "$test (exit wrapper)" + fail "no spurious messages at program exit" } } @@ -67,112 +62,30 @@ if [target_info exists noargs] then { } # Now run with some arguments -if [istarget "*-*-vxworks*"] then { - send_gdb "run vxmain \"5\"\n" - gdb_expect -re "run vxmain \"5\"\r\n" {} - set timeout 120 - verbose "Timeout is now $timeout seconds" 2 - gdb_expect { - "$inferior_exited_re normally" { - unresolved "run \"$testfile\" with arg" - } - "120" { - pass "run \"$testfile\" with arg" - } - timeout { - fail "(timeout) run \"$testfile\" with arg" - } - } - set timeout 10 - verbose "Timeout is now $timeout seconds" 2 - gdb_expect -re "$gdb_prompt $" {} -} else { - setup_xfail "arm-*-coff" - gdb_run_cmd 5 - gdb_test "" "120.*" "run \"$testfile\" with arg" -} +setup_xfail "arm-*-coff" +gdb_run_cmd 5 +gdb_test "" "120.*" "run \"$testfile\" with arg" # Run again with same arguments. gdb_run_cmd -if [istarget "*-*-vxworks*"] then { - set timeout 120 - verbose "Timeout is now $timeout seconds" 2 - gdb_expect { - "$inferior_exited_re normally" { - unresolved "run \"$testfile\" again with same args" - } - "120" { pass "run \"$testfile\" again with same args" } - timeout { fail "(timeout) run \"$testfile\" again with same args" } - } - set timeout 10 - verbose "Timeout is now $timeout seconds" 2 - gdb_expect -re "$gdb_prompt $" {} -} else { - setup_xfail "arm-*-coff" - gdb_test "" "120.*" "run \"$testfile\" again with same args" -} +setup_xfail "arm-*-coff" +gdb_test "" "120.*" "run \"$testfile\" again with same args" # Use "set args" command to specify no arguments as default and run again. -if [istarget "*-*-vxworks*"] then { - gdb_test_no_output "set args main" -} else { - gdb_test_no_output "set args" -} +gdb_test_no_output "set args" gdb_run_cmd -if [istarget "*-*-vxworks*"] then { - set timeout 120 - verbose "Timeout is now $timeout seconds" 2 - gdb_expect { - "$inferior_exited_re normally" { - unresolved "run after setting args to nil" - } - "usage: factorial <number>" { - pass "run after setting args to nil" - } - timeout { - fail "(timeout) run after setting args to nil" - } - } - set timeout 10 - verbose "Timeout is now $timeout seconds" 2 - gdb_expect -re "$gdb_prompt $" {} -} else { - gdb_test "" "usage: factorial <number>.*" "run after setting args to nil" -} +gdb_test "" "usage: factorial <number>.*" "run after setting args to nil" # Use "set args" command to specify an argument and run again. -if [istarget "*-*-vxworks*"] then { - gdb_test_no_output "set args vxmain \"6\"" -} else { - gdb_test_no_output "set args 6" -} +gdb_test_no_output "set args 6" gdb_run_cmd -if [istarget "*-*-vxworks*"] then { - set timeout 120 - verbose "Timeout is now $timeout seconds" 2 - gdb_expect { - "$inferior_exited_re normally" { - unresolved "run \"$testfile\" again after setting args" - } - "720" { - pass "run \"$testfile\" again after setting args" - } - timeout { - fail "(timeout) run \"$testfile\" again after setting args" - } - } - set timeout 10 - verbose "Timeout is now $timeout seconds" 2 - gdb_expect -re "$gdb_prompt $" {} -} else { - setup_xfail "arm-*-coff" - gdb_test "" "720.*" "run \"$testfile\" again after setting args" -} +setup_xfail "arm-*-coff" +gdb_test "" "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. @@ -181,8 +94,3 @@ if ![is_remote target] then { "Starting program.*40320.*" \ "run \"$testfile\" with shell" } - -# Reset the default arguments for VxWorks -if [istarget "*-*-vxworks*"] then { - gdb_test_no_output "set args main" -} |