Make libstdc++ tests FAIL on Python errors

* testsuite/lib/gdb-test.exp (gdb-test): Fail if Python error occurs.

From-SVN: r240237
This commit is contained in:
Jonathan Wakely 2016-09-19 16:59:04 +01:00 committed by Jonathan Wakely
parent f37cb70b6b
commit ee1ab3e3c2
2 changed files with 8 additions and 0 deletions

View File

@ -1,5 +1,7 @@
2016-09-19 Jonathan Wakely <jwakely@redhat.com>
* testsuite/lib/gdb-test.exp (gdb-test): Fail if Python error occurs.
* python/libstdcxx/v6/printers.py (SingleObjContainerPrinter): Allow
display_hint to be set by subclasses.
(StdVariantPrinter): Use array for display_hint. Adjust output to be

View File

@ -210,6 +210,12 @@ proc gdb-test { marker {selector {}} {load_xmethods 0} } {
return
}
-re {Error while executing Python code.[\n\r]} {
fail "$testname"
remote_close target
return
}
-re {^[^$][^\n\r]*[\n\r]+} {
send_log "skipping: $expect_out(buffer)"
exp_continue