From: Doug Evans Date: Wed, 9 Sep 2015 18:42:52 +0000 (-0700) Subject: * gdb.python/py-prettyprint.exp: Check result of run_lang_tests. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=e70b6e8eee4fc1ad1270a63ad000d11fd657d7a7;p=binutils-gdb.git * gdb.python/py-prettyprint.exp: Check result of run_lang_tests. gdb/testsuite/ChangeLog: * gdb.python/py-prettyprint.exp: Check result of run_lang_tests. --- diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog index 1033a240980..1538d152f1e 100644 --- a/gdb/testsuite/ChangeLog +++ b/gdb/testsuite/ChangeLog @@ -1,3 +1,7 @@ +2015-09-09 Doug Evans + + * gdb.python/py-prettyprint.exp: Check result of run_lang_tests. + 2015-09-09 Doug Evans * gdb.base/pie-execl.exp: Fix result test of build_executable. diff --git a/gdb/testsuite/gdb.python/py-prettyprint.exp b/gdb/testsuite/gdb.python/py-prettyprint.exp index bbcee563127..4cc96547246 100644 --- a/gdb/testsuite/gdb.python/py-prettyprint.exp +++ b/gdb/testsuite/gdb.python/py-prettyprint.exp @@ -114,8 +114,12 @@ proc run_lang_tests {exefile lang} { gdb_continue_to_end } -run_lang_tests "${binfile}" "c" -run_lang_tests "${binfile}-cxx" "c++" +if { [run_lang_tests "${binfile}" "c"] == -1 } { + return +} +if { [run_lang_tests "${binfile}-cxx" "c++"] == -1 } { + return +} # Run various other tests.