aboutsummaryrefslogtreecommitdiff
path: root/gdb/testsuite
diff options
context:
space:
mode:
authorPaul Pluzhnikov <ppluzhnikov@google.com>2008-08-08 17:17:02 +0000
committerPaul Pluzhnikov <ppluzhnikov@google.com>2008-08-08 17:17:02 +0000
commitc814a4f3007d77c2e67d7884c98e342c2e07ff0e (patch)
tree74473d6fb6662f0225758e752c74fee9f041158d /gdb/testsuite
parentf164887602cf9726bc64d793a9b7614d8f2c7d67 (diff)
downloadgdb-c814a4f3007d77c2e67d7884c98e342c2e07ff0e.zip
gdb-c814a4f3007d77c2e67d7884c98e342c2e07ff0e.tar.gz
gdb-c814a4f3007d77c2e67d7884c98e342c2e07ff0e.tar.bz2
gdb.base/args.exp: Prevent ~/.gdbinit from affecting test.
Diffstat (limited to 'gdb/testsuite')
-rw-r--r--gdb/testsuite/ChangeLog4
-rw-r--r--gdb/testsuite/gdb.base/args.exp10
2 files changed, 9 insertions, 5 deletions
diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog
index 28046a9..b00e52b 100644
--- a/gdb/testsuite/ChangeLog
+++ b/gdb/testsuite/ChangeLog
@@ -1,3 +1,7 @@
+2008-08-08 Paul Pluzhnikov <ppluzhnikov@google.com>
+
+ * gdb.base/args.exp: Prevent ~/.gdbinit from affecting test.
+
2008-08-07 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
* gdb.arch/spu-info.exp: Updated for "info spu dma" changes.
diff --git a/gdb/testsuite/gdb.base/args.exp b/gdb/testsuite/gdb.base/args.exp
index 28e70d0..544fca7 100644
--- a/gdb/testsuite/gdb.base/args.exp
+++ b/gdb/testsuite/gdb.base/args.exp
@@ -71,7 +71,7 @@ proc args_test { name arglist } {
# Test that the --args are processed correctly.
#
set old_gdbflags $GDBFLAGS
-set GDBFLAGS "--args $binfile 1 3"
+set GDBFLAGS "-nx --args $binfile 1 3"
args_test basic {{1} {3}}
#
@@ -79,21 +79,21 @@ args_test basic {{1} {3}}
# The syntax needed is a little peculiar; DejaGNU treats the arguments as a
# list and expands them itself, since no shell redirection is involved.
#
-set GDBFLAGS "--args $binfile 1 {} 3"
+set GDBFLAGS "-nx --args $binfile 1 {} 3"
args_test "one empty" {{1} {} {3}}
#
# try with 2 empty args
#
-set GDBFLAGS "--args $binfile 1 {} {} 3"
+set GDBFLAGS "-nx --args $binfile 1 {} {} 3"
args_test "two empty" {{1} {} {} 3}
# Try with arguments containing literal single quotes.
-set GDBFLAGS "--args $binfile 1 '' 3"
+set GDBFLAGS "-nx --args $binfile 1 '' 3"
args_test "one empty (with single quotes)" {{1} {''} {3}}
-set GDBFLAGS "--args $binfile 1 '' '' 3"
+set GDBFLAGS "-nx --args $binfile 1 '' '' 3"
args_test "two empty (with single quotes)" {{1} {''} {''} {3}}
set GDBFLAGS $old_gdbflags