Make libstdc++ tests FAIL on Python errors
authorJonathan Wakely <jwakely@redhat.com>
Mon, 19 Sep 2016 15:59:04 +0000 (16:59 +0100)
committerJonathan Wakely <redi@gcc.gnu.org>
Mon, 19 Sep 2016 15:59:04 +0000 (16:59 +0100)
* testsuite/lib/gdb-test.exp (gdb-test): Fail if Python error occurs.

From-SVN: r240237

libstdc++-v3/ChangeLog
libstdc++-v3/testsuite/lib/gdb-test.exp

index 8ee94555b1a92b315ff722a1eb2b09c64fb4a54b..ee42cdf049c44aa49c060de3a20aae6f8106eb5c 100644 (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
index a0298832be1622bcdc272b7e84d3de5c3c9b25c7..3ebbf6b4d2d6c2cf95adea90873294356ef827a9 100644 (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