diff options
author | Tom Tromey <tromey@redhat.com> | 2013-06-06 19:00:13 +0000 |
---|---|---|
committer | Tom Tromey <tromey@redhat.com> | 2013-06-06 19:00:13 +0000 |
commit | bf6be0f482c67d805e3b67aa424e4f5b0126bcfd (patch) | |
tree | 2ed75a91610510c04545b179bced64b73054fa8c /gdb/testsuite/gdb.base/dump.exp | |
parent | ac44adcb6a4b7659d6ce47bd820b9230e5852b05 (diff) | |
download | binutils-gdb-bf6be0f482c67d805e3b67aa424e4f5b0126bcfd.tar.gz |
* gdb.base/dump.exp (capture_value): Don't put expression into
test name if arguments passed in.
Rename a couple more tests to make them unique.
Diffstat (limited to 'gdb/testsuite/gdb.base/dump.exp')
-rw-r--r-- | gdb/testsuite/gdb.base/dump.exp | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/gdb/testsuite/gdb.base/dump.exp b/gdb/testsuite/gdb.base/dump.exp index 17202a8fe60..b2d0b3a17a0 100644 --- a/gdb/testsuite/gdb.base/dump.exp +++ b/gdb/testsuite/gdb.base/dump.exp @@ -129,8 +129,9 @@ proc capture_value { expression args } { set output_string "" if {[llength $args] > 0} { - # Convert $args into a simple string. - set test "[join $args]; capture $expression" + # Convert $args into a simple string and don't use EXPRESSION + # in the test name. + set test "[join $args]; capture" } { set test "capture $expression" } @@ -440,14 +441,14 @@ gdb_test_multiple "set endian $endian" "set endianness" { # Reload saved values one by one, and compare. if { ![string compare $array_val \ - [capture_value "intarray" "file binfile"]] } then { + [capture_value "intarray" "file binfile; intarray"]] } then { fail "start with intarray un-initialized" } else { pass "start with intarray un-initialized" } if { ![string compare $struct_val \ - [capture_value "intstruct" "file binfile"]] } then { + [capture_value "intstruct" "file binfile; intstruct"]] } then { fail "start with intstruct un-initialized" } else { pass "start with intstruct un-initialized" |