diff options
author | Yit Phang Khoo <khooyp@sourceware.org> | 2012-09-08 05:29:21 +0000 |
---|---|---|
committer | Yit Phang Khoo <khooyp@sourceware.org> | 2012-09-08 05:29:21 +0000 |
commit | b4ca5ed946e024ae1b311c59d83793eba0a8214b (patch) | |
tree | 8cdb1b334136d51f06a7f0c76550d32ff717da2a /gdb/testsuite/gdb.gdb/complaints.exp | |
parent | 78ca4e81ffc025ba2f18ab6964a84d6693624b5d (diff) | |
download | gdb-b4ca5ed946e024ae1b311c59d83793eba0a8214b.zip gdb-b4ca5ed946e024ae1b311c59d83793eba0a8214b.tar.gz gdb-b4ca5ed946e024ae1b311c59d83793eba0a8214b.tar.bz2 |
2012-09-08 Khoo Yit Phang <khooyp@cs.umd.edu>
Replace -nw option with $INTERNAL_GDBFLAGS in "xgdb" tests to
avoid spurious results due to ~/.gdbinit.
* gdb.gdb/complaint.exp (setup_test): Replace -nw option with
$INTERNAL_GDBFLAGS in run command.
* gdb.gdb/observer.exp (setup_test): Ditto.
* gdb.gdb/selftest.exp (test_with_self): Ditto.
* gdb.gdb/xfullpath.exp (setup_test): Ditto.
Diffstat (limited to 'gdb/testsuite/gdb.gdb/complaints.exp')
-rw-r--r-- | gdb/testsuite/gdb.gdb/complaints.exp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gdb/testsuite/gdb.gdb/complaints.exp b/gdb/testsuite/gdb.gdb/complaints.exp index 97a3270..fd651a5 100644 --- a/gdb/testsuite/gdb.gdb/complaints.exp +++ b/gdb/testsuite/gdb.gdb/complaints.exp @@ -31,6 +31,7 @@ if [target_info exists gdb,noinferiorio] { proc setup_test { executable } { global gdb_prompt global timeout + global INTERNAL_GDBFLAGS # load yourself into the debugger # This can take a relatively long time, particularly for testing where @@ -73,7 +74,7 @@ proc setup_test { executable } { set timeout 600 set description "run until breakpoint at captured_command_loop" - gdb_test_multiple "run -nw" "$description" { + gdb_test_multiple "run $INTERNAL_GDBFLAGS" "$description" { -re "Starting program.*Breakpoint \[0-9\]+,.*captured_command_loop .data.* at .*main.c:.*$gdb_prompt $" { pass "$description" } |