aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gdb/testsuite/ChangeLog4
-rw-r--r--gdb/testsuite/gdb.base/args.exp2
2 files changed, 6 insertions, 0 deletions
diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog
index 0a46cd7..76c72b5 100644
--- a/gdb/testsuite/ChangeLog
+++ b/gdb/testsuite/ChangeLog
@@ -1,3 +1,7 @@
+2003-01-15 Elena Zannoni <ezannoni@redhat.com>
+
+ * gdb.base/args.exp: Fix foobar with GDBFLAGS global.
+
2003-01-15 Mark Kettenis <kettenis@gnu.org>
* gdb.base/default.exp: Adapt "info float" test for recent changes
diff --git a/gdb/testsuite/gdb.base/args.exp b/gdb/testsuite/gdb.base/args.exp
index e4d00d0..d3c5470 100644
--- a/gdb/testsuite/gdb.base/args.exp
+++ b/gdb/testsuite/gdb.base/args.exp
@@ -37,6 +37,7 @@ if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable {deb
#
# Test that the --args are processed correctly.
#
+set old_gdbflags $GDBFLAGS
set GDBFLAGS "--args $binfile 1 3"
gdb_exit
gdb_start
@@ -67,4 +68,5 @@ gdb_test "run" \
"Starting program.*args 1 \\\\'\\\\' \\\\'\\\\' 3.*5\r\n.*args\r\n1\r\n''\r\n''\r\n3.*Program exited normally." \
"correct args printed, two empty"
+set GDBFLAGS $old_gdbflags