* gdb.python/py-prettyprint.exp: Check result of run_lang_tests.
authorDoug Evans <dje@google.com>
Wed, 9 Sep 2015 18:42:52 +0000 (11:42 -0700)
committerDoug Evans <dje@google.com>
Wed, 9 Sep 2015 18:42:52 +0000 (11:42 -0700)
gdb/testsuite/ChangeLog:

* gdb.python/py-prettyprint.exp: Check result of run_lang_tests.

gdb/testsuite/ChangeLog
gdb/testsuite/gdb.python/py-prettyprint.exp

index 1033a240980d035a8f2ad695b20a46f63760f8a0..1538d152f1e5fc119c5c111e18b5774029771801 100644 (file)
@@ -1,3 +1,7 @@
+2015-09-09  Doug Evans  <dje@google.com>
+
+       * gdb.python/py-prettyprint.exp: Check result of run_lang_tests.
+
 2015-09-09  Doug Evans  <dje@google.com>
 
        * gdb.base/pie-execl.exp: Fix result test of build_executable.
index bbcee563127d74a5aac89d56fdce746041c14e4c..4cc965472464d07d3ad778463713340fe228b794 100644 (file)
@@ -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.