mirror of
https://github.com/darlinghq/darling-gdb.git
synced 2025-01-19 07:24:48 +00:00
gdb.base/args.exp: Prevent ~/.gdbinit from affecting test.
This commit is contained in:
parent
f164887602
commit
c814a4f300
@ -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>
|
2008-08-07 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
|
||||||
|
|
||||||
* gdb.arch/spu-info.exp: Updated for "info spu dma" changes.
|
* gdb.arch/spu-info.exp: Updated for "info spu dma" changes.
|
||||||
|
@ -71,7 +71,7 @@ proc args_test { name arglist } {
|
|||||||
# Test that the --args are processed correctly.
|
# Test that the --args are processed correctly.
|
||||||
#
|
#
|
||||||
set old_gdbflags $GDBFLAGS
|
set old_gdbflags $GDBFLAGS
|
||||||
set GDBFLAGS "--args $binfile 1 3"
|
set GDBFLAGS "-nx --args $binfile 1 3"
|
||||||
args_test basic {{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
|
# The syntax needed is a little peculiar; DejaGNU treats the arguments as a
|
||||||
# list and expands them itself, since no shell redirection is involved.
|
# 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}}
|
args_test "one empty" {{1} {} {3}}
|
||||||
|
|
||||||
#
|
#
|
||||||
# try with 2 empty args
|
# try with 2 empty args
|
||||||
#
|
#
|
||||||
set GDBFLAGS "--args $binfile 1 {} {} 3"
|
set GDBFLAGS "-nx --args $binfile 1 {} {} 3"
|
||||||
args_test "two empty" {{1} {} {} 3}
|
args_test "two empty" {{1} {} {} 3}
|
||||||
|
|
||||||
# Try with arguments containing literal single quotes.
|
# 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}}
|
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}}
|
args_test "two empty (with single quotes)" {{1} {''} {''} {3}}
|
||||||
|
|
||||||
set GDBFLAGS $old_gdbflags
|
set GDBFLAGS $old_gdbflags
|
||||||
|
Loading…
x
Reference in New Issue
Block a user