[obv] testsuite: break-interp.exp gdb.sum cleanup

Jan Kratochvil jan.kratochvil@redhat.com
Wed Jan 27 20:56:00 GMT 2010


Hi,

Keith Seitz has correctly noticed directory pathnames contained in gdb.sum
which complicates results regression-diffing.  Did not notice it myself due to
some local scripts.

Checked-in as obvious.

It changes the output like in this case:
-PASS: gdb.base/break-interp.exp: LDprelinkNOdebugNO: BINprelinkNOdebugNOpieYES: unprelink /home/jkratoch/redhat/gdb-clean/gdb/testsuite/gdb.base/break-interp-BINprelinkNOdebugNOpieYES
+PASS: gdb.base/break-interp.exp: LDprelinkNOdebugNO: BINprelinkNOdebugNOpieYES: unprelink break-interp-BINprelinkNOdebugNOpieYES


Sorry,
Jan


http://sourceware.org/ml/gdb-cvs/2010-01/msg00225.html

--- src/gdb/testsuite/ChangeLog	2010/01/27 18:04:56	1.2105
+++ src/gdb/testsuite/ChangeLog	2010/01/27 20:53:22	1.2106
@@ -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.
--- src/gdb/testsuite/gdb.base/break-interp.exp	2010/01/14 21:12:00	1.5
+++ src/gdb/testsuite/gdb.base/break-interp.exp	2010/01/27 20:53:22	1.6
@@ -502,17 +502,18 @@
 		    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 @@
 			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"}]
 		    }



More information about the Gdb-patches mailing list