This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
[PATCH 3/3] gdb.arch/ppc64-atomic-inst.exp: Improve error handling.
- From: Anton Blanchard <anton at samba dot org>
- To: gdb-patches at sourceware dot org, brobecker at adacore dot com, emachado at linux dot vnet dot ibm dot com, luis_gustavo at mentor dot com, ulrich dot weigand at de dot ibm dot com, palves at redhat dot com
- Date: Mon, 31 Mar 2014 13:58:50 +1100
- Subject: [PATCH 3/3] gdb.arch/ppc64-atomic-inst.exp: Improve error handling.
- Authentication-results: sourceware.org; auth=none
- References: <1396234730-12149-1-git-send-email-anton at samba dot org>
gdb/testsuite/
2014-03-31 Anton Blanchard <anton@samba.org>
* gdb.arch/ppc64-atomic-inst.exp: Use untested. Make test
messages unique.
---
gdb/testsuite/gdb.arch/ppc64-atomic-inst.exp | 14 +++++++-------
1 file changed, 7 insertions(+), 7 deletions(-)
diff --git a/gdb/testsuite/gdb.arch/ppc64-atomic-inst.exp b/gdb/testsuite/gdb.arch/ppc64-atomic-inst.exp
index fc7568c..ff26697 100644
--- a/gdb/testsuite/gdb.arch/ppc64-atomic-inst.exp
+++ b/gdb/testsuite/gdb.arch/ppc64-atomic-inst.exp
@@ -33,26 +33,26 @@ if { [prepare_for_testing ${testfile}.exp ${testfile} ${srcfile} {debug quiet}]
}
if ![runto_main] then {
- perror "Couldn't run to breakpoint"
- continue
+ untested "could not run to main"
+ return -1
}
set bp1 [gdb_get_line_number "lwarx"]
gdb_breakpoint "$bp1" "Breakpoint $decimal at $hex" \
- "Set the breakpoint at the start of the sequence"
+ "Set the breakpoint at the start of the lwarx/stwcx sequence"
set bp2 [gdb_get_line_number "ldarx"]
gdb_breakpoint "$bp2" "Breakpoint $decimal at $hex" \
- "Set the breakpoint at the start of the sequence"
+ "Set the breakpoint at the start of the ldarx/stdcx sequence"
gdb_test continue "Continuing.*Breakpoint $decimal.*" \
- "Continue until breakpoint"
+ "Continue until lwarx/stwcx start breakpoint"
gdb_test nexti "bne.*1b" \
"Step through the lwarx/stwcx sequence"
gdb_test continue "Continuing.*Breakpoint $decimal.*" \
- "Continue until breakpoint"
+ "Continue until ldarx/stdcx start breakpoint"
gdb_test nexti "bne.*1b" \
- "Step through the lwarx/stwcx sequence"
+ "Step through the ldarx/stdcx sequence"
--
1.8.3.2