Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
* [patch] Fix for gdb.base/args.exp when ~/.gdbinit has "set confirm off"
@ 2008-08-08 17:16 Paul Pluzhnikov
  0 siblings, 0 replies; only message in thread
From: Paul Pluzhnikov @ 2008-08-08 17:16 UTC (permalink / raw)
  To: gdb-patches; +Cc: ppluzhnikov

Greetings,

gdb.base/args.exp has been failing for me (and it takes a looong
time to fail), because I have "set confirm off" in ~/.gdbinit.

Attached patch fixes that.

Committed as obvious.

--
Paul Pluzhnikov


2008-08-08  Paul Pluzhnikov  <ppluzhnikov@google.com>

	* gdb.base/args.exp: Prevent ~/.gdbinit from affecting test.

Index: gdb.base/args.exp
===================================================================
RCS file: /cvs/src/src/gdb/testsuite/gdb.base/args.exp,v
retrieving revision 1.14
diff -u -p -u -r1.14 args.exp
--- gdb.base/args.exp	6 Aug 2008 12:52:06 -0000	1.14
+++ gdb.base/args.exp	8 Aug 2008 17:07:42 -0000
@@ -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


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2008-08-08 17:16 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-08-08 17:16 [patch] Fix for gdb.base/args.exp when ~/.gdbinit has "set confirm off" Paul Pluzhnikov

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox