Commit be56f2c4 by Tom de Vries Committed by Tom de Vries

[testsuite/guality] Be verbose about gdb version used

2018-06-22  Tom de Vries  <tdevries@suse.de>

	* lib/gcc-gdb-test.exp (report_gdb): New proc.
	* g++.dg/guality/guality.exp: Use report_gdb.
	* gcc.dg/guality/guality.exp: Same.
	* gfortran.dg/guality/guality.exp: Same.

From-SVN: r261911
parent 7017d4a2
2018-06-22 Tom de Vries <tdevries@suse.de>
* lib/gcc-gdb-test.exp (report_gdb): New proc.
* g++.dg/guality/guality.exp: Use report_gdb.
* gcc.dg/guality/guality.exp: Same.
* gfortran.dg/guality/guality.exp: Same.
2018-06-22 Jakub Jelinek <jakub@redhat.com>
PR c++/85662
......
......@@ -43,6 +43,7 @@ if ![info exists ::env(GUALITY_GDB_NAME)] {
}
setenv GUALITY_GDB_NAME "$guality_gdb_name"
}
report_gdb [exec which $::env(GUALITY_GDB_NAME)] [info script]
if {[check_guality "
#include \"$srcdir/$subdir/guality.h\"
......
......@@ -43,6 +43,7 @@ if ![info exists ::env(GUALITY_GDB_NAME)] {
}
setenv GUALITY_GDB_NAME "$guality_gdb_name"
}
report_gdb [exec which $::env(GUALITY_GDB_NAME)] [info script]
if {[check_guality "
#include \"$srcdir/$subdir/guality.h\"
......
......@@ -24,6 +24,7 @@ if ![info exists ::env(GUALITY_GDB_NAME)] {
}
setenv GUALITY_GDB_NAME "$guality_gdb_name"
}
report_gdb [exec which $::env(GUALITY_GDB_NAME)] [info script]
gfortran-dg-runtest [lsort [glob $srcdir/$subdir/*.\[fF\]{,90,95,03,08} ]] "" ""
......
......@@ -139,3 +139,13 @@ proc gdb-test { args } {
file delete $cmd_file
return
}
# Report the gdb path and version log the .log file
# Argument 0 is the gdb path
# Argument 1 is the location where gdb is used
#
proc report_gdb { gdb loc } {
send_log "gdb used in $loc: $gdb\n"
set gdb_version [exec $gdb -v]
send_log "gdb used in $loc: version:\n---\n$gdb_version\n---\n"
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment