diff options
author | Bob Manson <manson@cygnus> | 1997-02-02 07:59:25 +0000 |
---|---|---|
committer | Bob Manson <manson@cygnus> | 1997-02-02 07:59:25 +0000 |
commit | 85fbaa747f9edd4184cce516c8804bb4553e08f7 (patch) | |
tree | 3011762b44f70c7e2abfd700004d1d0652c831a9 /gdb/testsuite/gdb.base/a2-run.exp | |
parent | e385d6e03e0733be01c51d24588b981c9e928d6c (diff) | |
download | gdb-85fbaa747f9edd4184cce516c8804bb4553e08f7.zip gdb-85fbaa747f9edd4184cce516c8804bb4553e08f7.tar.gz gdb-85fbaa747f9edd4184cce516c8804bb4553e08f7.tar.bz2 |
* gdb.*/*.exp: Replace $prompt with $gdb_prompt.
* gdb.base/scope.exp: Use gdb_test.
* gdb.c++/classes.exp: Ditto.
* gdb.c++/inherit.exp: Ditto.
More random cleanups. Still lots to go, however.
Diffstat (limited to 'gdb/testsuite/gdb.base/a2-run.exp')
-rw-r--r-- | gdb/testsuite/gdb.base/a2-run.exp | 40 |
1 files changed, 20 insertions, 20 deletions
diff --git a/gdb/testsuite/gdb.base/a2-run.exp b/gdb/testsuite/gdb.base/a2-run.exp index 89f2c7d..57c7a82 100644 --- a/gdb/testsuite/gdb.base/a2-run.exp +++ b/gdb/testsuite/gdb.base/a2-run.exp @@ -74,13 +74,13 @@ if [istarget "*-*-vxworks*"] then { } set timeout 10 verbose "Timeout is now $timeout seconds" 2 - expect -re "$prompt $" {} + expect -re "$gdb_prompt $" {} } else { expect { - -re ".*usage: factorial <number>.*Program exited with code 01.*$prompt $" { + -re ".*usage: factorial <number>.*Program exited with code 01.*$gdb_prompt $" { pass "run \"$testfile\" with no args" } - -re ".*$prompt $" { + -re ".*$gdb_prompt $" { fail "run \"$testfile\" with no args" verbose "expect_out is $expect_out(buffer)" 2 } @@ -108,14 +108,14 @@ if [istarget "*-*-vxworks*"] then { } set timeout 10 verbose "Timeout is now $timeout seconds" 2 - expect -re "$prompt $" {} + expect -re "$gdb_prompt $" {} } else { setup_xfail "mips-idt-*" gdb_run_cmd 5 expect { - -re ".*120.*$prompt $"\ + -re ".*120.*$gdb_prompt $"\ { pass "run \"$testfile\" with arg" } - -re ".*$prompt $" { fail "run \"$testfile\" with arg" } + -re ".*$gdb_prompt $" { fail "run \"$testfile\" with arg" } timeout { fail "(timeout) run \"$testfile\" with arg" } } } @@ -136,12 +136,12 @@ if [istarget "*-*-vxworks*"] then { } set timeout 10 verbose "Timeout is now $timeout seconds" 2 - expect -re "$prompt $" {} + expect -re "$gdb_prompt $" {} } else { expect { - -re ".*120.*$prompt $"\ + -re ".*120.*$gdb_prompt $"\ { pass "run \"$testfile\" again with same args" } - -re ".*$prompt $" { fail "run \"$testfile\" again with same args" } + -re ".*$gdb_prompt $" { fail "run \"$testfile\" again with same args" } timeout { fail "(timeout) run \"$testfile\" again with same args" } } } @@ -152,7 +152,7 @@ if [istarget "*-*-vxworks*"] then { } else { send_gdb "set args\n" } -expect -re "$prompt $" +expect -re "$gdb_prompt $" gdb_run_cmd @@ -172,13 +172,13 @@ if [istarget "*-*-vxworks*"] then { } set timeout 10 verbose "Timeout is now $timeout seconds" 2 - expect -re "$prompt $" {} + expect -re "$gdb_prompt $" {} } else { expect { - -re ".*usage: factorial <number>.*$prompt $" { + -re ".*usage: factorial <number>.*$gdb_prompt $" { pass "run after setting args to nil" } - -re ".*$prompt $" { + -re ".*$gdb_prompt $" { fail "run after setting args to nil" } timeout { @@ -194,7 +194,7 @@ if [istarget "*-*-vxworks*"] then { } else { send_gdb "set args 6\n" } -expect -re "$prompt $" +expect -re "$gdb_prompt $" gdb_run_cmd if [istarget "*-*-vxworks*"] then { @@ -213,13 +213,13 @@ if [istarget "*-*-vxworks*"] then { } set timeout 10 verbose "Timeout is now $timeout seconds" 2 - expect -re "$prompt $" {} + expect -re "$gdb_prompt $" {} } else { expect { - -re ".*720.*$prompt $" { + -re ".*720.*$gdb_prompt $" { pass "run \"$testfile\" again after setting args" } - -re ".*$prompt $" { + -re ".*$gdb_prompt $" { fail "run \"$testfile\" again after setting args" } timeout { @@ -233,10 +233,10 @@ if [istarget "*-*-vxworks*"] then { if [isnative] then { send_gdb "run `echo 8`\n" expect { - -re "Starting program.*40320.*$prompt $" { + -re "Starting program.*40320.*$gdb_prompt $" { pass "run \"$testfile\" with shell" } - -re ".*$prompt $" { + -re ".*$gdb_prompt $" { fail "run \"$testfile\" with shell" } timeout { @@ -248,5 +248,5 @@ if [isnative] then { # Reset the default arguments for VxWorks if [istarget "*-*-vxworks*"] then { send_gdb "set args main\n" - expect -re ".*$prompt $" {} + expect -re ".*$gdb_prompt $" {} } |