aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonathan Wakely <jwakely@redhat.com>2016-09-19 16:59:04 +0100
committerJonathan Wakely <redi@gcc.gnu.org>2016-09-19 16:59:04 +0100
commitee1ab3e3c2296a7cea60f0b1d92a5b3d9cc4cae3 (patch)
tree05760d9c75efb89fb3fdc8799d5967aa440ddd65
parentf37cb70b6b5a0af23c753086b5136e7df73bceee (diff)
downloadgcc-ee1ab3e3c2296a7cea60f0b1d92a5b3d9cc4cae3.zip
gcc-ee1ab3e3c2296a7cea60f0b1d92a5b3d9cc4cae3.tar.gz
gcc-ee1ab3e3c2296a7cea60f0b1d92a5b3d9cc4cae3.tar.bz2
Make libstdc++ tests FAIL on Python errors
* testsuite/lib/gdb-test.exp (gdb-test): Fail if Python error occurs. From-SVN: r240237
-rw-r--r--libstdc++-v3/ChangeLog2
-rw-r--r--libstdc++-v3/testsuite/lib/gdb-test.exp6
2 files changed, 8 insertions, 0 deletions
diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog
index 8ee9455..ee42cdf 100644
--- a/libstdc++-v3/ChangeLog
+++ b/libstdc++-v3/ChangeLog
@@ -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
diff --git a/libstdc++-v3/testsuite/lib/gdb-test.exp b/libstdc++-v3/testsuite/lib/gdb-test.exp
index a029883..3ebbf6b 100644
--- a/libstdc++-v3/testsuite/lib/gdb-test.exp
+++ b/libstdc++-v3/testsuite/lib/gdb-test.exp
@@ -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