This is the mail archive of the gdb-cvs@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=e70b6e8eee4fc1ad1270a63ad000d11fd657d7a7

commit e70b6e8eee4fc1ad1270a63ad000d11fd657d7a7
Author: Doug Evans <dje@google.com>
Date:   Wed Sep 9 11:42:52 2015 -0700

    * 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:
---
 gdb/testsuite/ChangeLog                     | 4 ++++
 gdb/testsuite/gdb.python/py-prettyprint.exp | 8 ++++++--
 2 files changed, 10 insertions(+), 2 deletions(-)

diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog
index 1033a24..1538d15 100644
--- a/gdb/testsuite/ChangeLog
+++ b/gdb/testsuite/ChangeLog
@@ -1,5 +1,9 @@
 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.
 
 2015-09-09  Doug Evans  <dje@google.com>
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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]