From: Jonathan Wakely Date: Mon, 19 Sep 2016 15:59:04 +0000 (+0100) Subject: Make libstdc++ tests FAIL on Python errors X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=ee1ab3e3c2296a7cea60f0b1d92a5b3d9cc4cae3;p=gcc.git Make libstdc++ tests FAIL on Python errors * testsuite/lib/gdb-test.exp (gdb-test): Fail if Python error occurs. From-SVN: r240237 --- diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog index 8ee94555b1a..ee42cdf049c 100644 --- a/libstdc++-v3/ChangeLog +++ b/libstdc++-v3/ChangeLog @@ -1,5 +1,7 @@ 2016-09-19 Jonathan Wakely + * 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 a0298832be1..3ebbf6b4d2d 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