Commit e8223484 by Jonathan Wakely Committed by Jonathan Wakely

Restore dg-interpreter-batch-mode for libstdc++ tests

2016-08-26  Jonathan Wakely  <jwakely@redhat.com>
	    Pedro Alves  <palves@redhat.com>

	* testsuite/lib/gdb-test.exp (gdb-dg-runtest): Define wrapper to save
	and restore dg-interpreter-batch-mode.
	* testsuite/libstdc++-prettyprinters/prettyprinters.exp: Use
	gdb-dg-runtest instead of dg-runtest.
	* testsuite/libstdc++-xmethods/xmethods.exp: Likewise.

Co-Authored-By: Pedro Alves <palves@redhat.com>

From-SVN: r239776
parent 21184026
2016-08-26 Jonathan Wakely <jwakely@redhat.com> 2016-08-26 Jonathan Wakely <jwakely@redhat.com>
Pedro Alves <palves@redhat.com>
* testsuite/lib/gdb-test.exp (gdb-dg-runtest): Define wrapper to save
and restore dg-interpreter-batch-mode.
* testsuite/libstdc++-prettyprinters/prettyprinters.exp: Use
gdb-dg-runtest instead of dg-runtest.
* testsuite/libstdc++-xmethods/xmethods.exp: Likewise.
2016-08-26 Jonathan Wakely <jwakely@redhat.com>
* config/abi/pre/gnu.ver (GLIBCXX_3.4, GLIBCXX_3.4.21): Use more * config/abi/pre/gnu.ver (GLIBCXX_3.4, GLIBCXX_3.4.21): Use more
precise patterns for basic_string constructors. precise patterns for basic_string constructors.
......
...@@ -277,3 +277,15 @@ proc gdb_version_check_xmethods {} { ...@@ -277,3 +277,15 @@ proc gdb_version_check_xmethods {} {
"python import gdb.xmethod; print(gdb.xmethod.XMethod)" \ "python import gdb.xmethod; print(gdb.xmethod.XMethod)" \
"<class 'gdb\\.xmethod\\.XMethod'>"] "<class 'gdb\\.xmethod\\.XMethod'>"]
} }
# Like dg-runtest but keep the .exe around. dg-test has an option for
# this but there is no way to pass it through dg-runtest.
proc gdb-dg-runtest {args} {
global dg-interpreter-batch-mode
set saved-dg-interpreter-batch-mode ${dg-interpreter-batch-mode}
set dg-interpreter-batch-mode 1
eval dg-runtest $args
set dg-interpreter-batch-mode ${saved-dg-interpreter-batch-mode}
}
...@@ -41,14 +41,9 @@ if {! [gdb_version_check]} { ...@@ -41,14 +41,9 @@ if {! [gdb_version_check]} {
return return
} }
# This can be used to keep the .exe around. dg-test has an option for
# this but there is no way to pass it through dg-runtest.
global dg-interpreter-batch-mode
set dg-interpreter-batch-mode 1
global DEFAULT_CXXFLAGS global DEFAULT_CXXFLAGS
global PCH_CXXFLAGS global PCH_CXXFLAGS
dg-runtest [lsort [glob $srcdir/$subdir/*.cc]] \ gdb-dg-runtest [lsort [glob $srcdir/$subdir/*.cc]] \
"" "$DEFAULT_CXXFLAGS $PCH_CXXFLAGS" "" "$DEFAULT_CXXFLAGS $PCH_CXXFLAGS"
if [info exists guality_gdb_name] { if [info exists guality_gdb_name] {
......
...@@ -42,14 +42,9 @@ if {! [gdb_version_check_xmethods]} { ...@@ -42,14 +42,9 @@ if {! [gdb_version_check_xmethods]} {
return return
} }
# This can be used to keep the .exe around. dg-test has an option for
# this but there is no way to pass it through dg-runtest.
global dg-interpreter-batch-mode
set dg-interpreter-batch-mode 1
global DEFAULT_CXXFLAGS global DEFAULT_CXXFLAGS
global PCH_CXXFLAGS global PCH_CXXFLAGS
dg-runtest [lsort [glob $srcdir/$subdir/*.cc]] \ gdb-dg-runtest [lsort [glob $srcdir/$subdir/*.cc]] \
"" "$DEFAULT_CXXFLAGS $PCH_CXXFLAGS" "" "$DEFAULT_CXXFLAGS $PCH_CXXFLAGS"
if [info exists guality_gdb_name] { if [info exists guality_gdb_name] {
......
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