Commit ee1ab3e3 by Jonathan Wakely Committed by Jonathan Wakely

Make libstdc++ tests FAIL on Python errors

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

From-SVN: r240237
parent f37cb70b
2016-09-19 Jonathan Wakely <jwakely@redhat.com> 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 * python/libstdcxx/v6/printers.py (SingleObjContainerPrinter): Allow
display_hint to be set by subclasses. display_hint to be set by subclasses.
(StdVariantPrinter): Use array for display_hint. Adjust output to be (StdVariantPrinter): Use array for display_hint. Adjust output to be
......
...@@ -210,6 +210,12 @@ proc gdb-test { marker {selector {}} {load_xmethods 0} } { ...@@ -210,6 +210,12 @@ proc gdb-test { marker {selector {}} {load_xmethods 0} } {
return return
} }
-re {Error while executing Python code.[\n\r]} {
fail "$testname"
remote_close target
return
}
-re {^[^$][^\n\r]*[\n\r]+} { -re {^[^$][^\n\r]*[\n\r]+} {
send_log "skipping: $expect_out(buffer)" send_log "skipping: $expect_out(buffer)"
exp_continue exp_continue
......
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