diff options
author | Jan Kratochvil <jan.kratochvil@redhat.com> | 2010-01-27 20:53:22 +0000 |
---|---|---|
committer | Jan Kratochvil <jan.kratochvil@redhat.com> | 2010-01-27 20:53:22 +0000 |
commit | 40b27cdc5906e0836e8791dce39c8608ee5f858d (patch) | |
tree | c9d8cdb4877ba5d4ca4274c1d2f63f9f70cbe2db /gdb/testsuite | |
parent | 16d905e2bea111256aa322e7e76fa647d05dfd1f (diff) | |
download | gdb-40b27cdc5906e0836e8791dce39c8608ee5f858d.zip gdb-40b27cdc5906e0836e8791dce39c8608ee5f858d.tar.gz gdb-40b27cdc5906e0836e8791dce39c8608ee5f858d.tar.bz2 |
gdb/testsuite/
* gdb.base/break-interp.exp: Use [file tail $filename] to omit any
absolute directory pathnames in gdb.sum file.
Diffstat (limited to 'gdb/testsuite')
-rw-r--r-- | gdb/testsuite/ChangeLog | 5 | ||||
-rw-r--r-- | gdb/testsuite/gdb.base/break-interp.exp | 9 |
2 files changed, 10 insertions, 4 deletions
diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog index 65459bf..9a5338c 100644 --- a/gdb/testsuite/ChangeLog +++ b/gdb/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2010-01-27 Jan Kratochvil <jan.kratochvil@redhat.com> + + * gdb.base/break-interp.exp: Use [file tail $filename] to omit any + absolute directory pathnames in gdb.sum file. + 2010-01-27 Sami Wagiaalla <swagiaal@redhat.com> * gdb.cp/namespace-using.exp: Rename to nsusing.exp. diff --git a/gdb/testsuite/gdb.base/break-interp.exp b/gdb/testsuite/gdb.base/break-interp.exp index d1c36ed..e628979 100644 --- a/gdb/testsuite/gdb.base/break-interp.exp +++ b/gdb/testsuite/gdb.base/break-interp.exp @@ -502,17 +502,18 @@ foreach ldprelink {NO YES} { file mkdir $dir set command "ldd $exec" + set test "ldd [file tail $exec]" set result [catch "exec $command" output] verbose -log "result of $command is $result" verbose -log "output of $command is $output" if {$result != 0 || $output == ""} { - fail $command + fail $test } else { - pass $command + pass $test } # gdb testsuite will put there also needless -lm. - set test "$command output contains libc" + set test "$test output contains libc" set libc [regexp -all -inline -line {^.* => (/[^ ]+).*$} $output] if {[llength $libc] == 0} { fail $test @@ -528,7 +529,7 @@ foreach ldprelink {NO YES} { lappend dests $dest } - if {[prelink$binprelink "--dynamic-linker=$interp --ld-library-path=$dir $exec $interp [concat $dests]" $exec] + if {[prelink$binprelink "--dynamic-linker=$interp --ld-library-path=$dir $exec $interp [concat $dests]" [file tail $exec]] && [copy $interp_saved $interp]} { test_ld $exec 1 [expr {$binsepdebug == "NO"}] } |