This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
[OB PATCH] gdb.python/py-prettyprint.exp: Check result of run_lang_tests.
- From: Doug Evans <dje at google dot com>
- To: gdb-patches at sourceware dot org
- Date: Wed, 09 Sep 2015 18:44:21 +0000
- Subject: [OB PATCH] gdb.python/py-prettyprint.exp: Check result of run_lang_tests.
- Authentication-results: sourceware.org; auth=none
Hi.
Another problem found in my testing.
Checked in as obvious.
2015-09-09 Doug Evans <dje@google.com>
* gdb.python/py-prettyprint.exp: Check result of run_lang_tests.
diff --git a/gdb/testsuite/gdb.python/py-prettyprint.exp
b/gdb/testsuite/gdb.python/py-prettyprint.exp
index bbcee56..4cc9654 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.