aboutsummaryrefslogtreecommitdiff
path: root/gdb/testsuite/gdb.python/py-prettyprint.exp
diff options
context:
space:
mode:
authorDoug Evans <dje@google.com>2015-09-09 11:42:52 -0700
committerDoug Evans <dje@google.com>2015-09-09 11:42:52 -0700
commite70b6e8eee4fc1ad1270a63ad000d11fd657d7a7 (patch)
treef35bd67c73f9aee65e28799c0c6bc18a57095d2b /gdb/testsuite/gdb.python/py-prettyprint.exp
parent7a551a515815a9888c6117bc5fb8ad49c7fa55a0 (diff)
downloadbinutils-e70b6e8eee4fc1ad1270a63ad000d11fd657d7a7.zip
binutils-e70b6e8eee4fc1ad1270a63ad000d11fd657d7a7.tar.gz
binutils-e70b6e8eee4fc1ad1270a63ad000d11fd657d7a7.tar.bz2
* 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.
Diffstat (limited to 'gdb/testsuite/gdb.python/py-prettyprint.exp')
-rw-r--r--gdb/testsuite/gdb.python/py-prettyprint.exp8
1 files changed, 6 insertions, 2 deletions
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.