* [PATCH] gdb.mi/mi-var-display.exp: fix racy tests (PR testsuite/12649)
@ 2011-06-21 13:57 Marek Polacek
2011-06-22 11:57 ` Marek Polacek
2011-06-22 16:06 ` Tom Tromey
0 siblings, 2 replies; 4+ messages in thread
From: Marek Polacek @ 2011-06-21 13:57 UTC (permalink / raw)
To: gdb-patches
Another one where we need to replace gdb_test_multiple with mi_gdb_test
to prevent failures with read1(). Note that when setting `fp', we need
to s/1/3/ since the index 1 and 2 is used by mi_gdb_test. Tested with
both read{,1}. OK to apply?
2011-06-21 Marek Polacek <mpolacek@redhat.com>
* gdb.mi/mi-var-display.exp: Replace gdb_test_multiple with mi_gdb_test.
--- gdb/gdb/testsuite/gdb.mi/mi-var-display.exp.mp 2011-06-21 13:05:15.679575309 +0200
+++ gdb/gdb/testsuite/gdb.mi/mi-var-display.exp 2011-06-21 13:34:06.561961094 +0200
@@ -605,12 +605,8 @@ mi_gdb_test "-var-list-children anone" \
# Record fp
-
-gdb_test_multiple "p/x \$fp" "print FP register" {
- -re ".*($hex).*\\^done\r\n$mi_gdb_prompt$" {
- pass "print FP register"
- set fp $expect_out(1,string)
- }
+if ![mi_gdb_test "p/x \$fp" ".*($hex).*\\^done" "Xprint FP register"] {
+ set fp $expect_out(3,string)
}
mi_continue_to "incr_a"
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] gdb.mi/mi-var-display.exp: fix racy tests (PR testsuite/12649)
2011-06-21 13:57 [PATCH] gdb.mi/mi-var-display.exp: fix racy tests (PR testsuite/12649) Marek Polacek
@ 2011-06-22 11:57 ` Marek Polacek
2011-06-22 16:06 ` Tom Tromey
1 sibling, 0 replies; 4+ messages in thread
From: Marek Polacek @ 2011-06-22 11:57 UTC (permalink / raw)
To: gdb-patches
On 06/21/2011 03:56 PM, Marek Polacek wrote:
> +if ![mi_gdb_test "p/x \$fp" ".*($hex).*\\^done" "Xprint FP register"] {
Duh, redundant `X'. Fixed.
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] gdb.mi/mi-var-display.exp: fix racy tests (PR testsuite/12649)
2011-06-21 13:57 [PATCH] gdb.mi/mi-var-display.exp: fix racy tests (PR testsuite/12649) Marek Polacek
2011-06-22 11:57 ` Marek Polacek
@ 2011-06-22 16:06 ` Tom Tromey
2011-06-22 16:13 ` Marek Polacek
1 sibling, 1 reply; 4+ messages in thread
From: Tom Tromey @ 2011-06-22 16:06 UTC (permalink / raw)
To: Marek Polacek; +Cc: gdb-patches
>>>>> "Marek" == Marek Polacek <mpolacek@redhat.com> writes:
Marek> 2011-06-21 Marek Polacek <mpolacek@redhat.com>
Marek> * gdb.mi/mi-var-display.exp: Replace gdb_test_multiple with mi_gdb_test.
One nit.
Marek> +if ![mi_gdb_test "p/x \$fp" ".*($hex).*\\^done" "Xprint FP register"] {
Marek> + set fp $expect_out(3,string)
Too much indentation here.
Ok with that fix; plus the fix from your follow-up email.
Tom
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] gdb.mi/mi-var-display.exp: fix racy tests (PR testsuite/12649)
2011-06-22 16:06 ` Tom Tromey
@ 2011-06-22 16:13 ` Marek Polacek
0 siblings, 0 replies; 4+ messages in thread
From: Marek Polacek @ 2011-06-22 16:13 UTC (permalink / raw)
To: Tom Tromey; +Cc: gdb-patches
On 06/22/2011 06:06 PM, Tom Tromey wrote:
> Ok with that fix; plus the fix from your follow-up email.
Thanks, checked in:
http://sourceware.org/ml/gdb-cvs/2011-06/msg00121.html
Marek
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2011-06-22 16:13 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-06-21 13:57 [PATCH] gdb.mi/mi-var-display.exp: fix racy tests (PR testsuite/12649) Marek Polacek
2011-06-22 11:57 ` Marek Polacek
2011-06-22 16:06 ` Tom Tromey
2011-06-22 16:13 ` Marek Polacek
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox