* [Patch] mi-var-display regression failures fix
@ 2008-04-01 14:05 Marc Khouzam
2008-04-01 14:53 ` Daniel Jacobowitz
0 siblings, 1 reply; 5+ messages in thread
From: Marc Khouzam @ 2008-04-01 14:05 UTC (permalink / raw)
To: gdb-patches
Hi,
There are a couple of new unexpected failures in MI regressions.
I believe that an xfail marker was removed by mistake, which makes a couple of tests seem to fail.
Instead of putting back the xfail, I thought that fixing the error may be even better :-)
This patch fixes those two testcases by having the test program run until variable are initialized.
BTW, you should have my Copyright Assignment on file now, and my sourceforge account is setup,
so I can commit this if I get approval.
Thanks
--
Marc Khouzam
Changelog:
2008-04-01 Marc Khouzam <marc.khouzam@ericsson.com>
* gdb.mi/mi-var-display.exp: Stop at end of do_special_tests
instead of beginning to make an extra test pass.
* gdb.mi/mi2-var-display.exp: Likewise.
Index: gdb/testsuite/gdb.mi/mi-var-display.exp
===================================================================
RCS file: /cvs/src/src/gdb/testsuite/gdb.mi/mi-var-display.exp,v
retrieving revision 1.23
diff -u -r1.23 mi-var-display.exp
--- gdb/testsuite/gdb.mi/mi-var-display.exp 26 Mar 2008 13:36:51 -0000 1.23
+++ gdb/testsuite/gdb.mi/mi-var-display.exp 1 Apr 2008 13:50:37 -0000
@@ -329,17 +329,17 @@
# #
##### #####
-# Stop in "do_special_tests"
+# Stop at the end of "do_special_tests"
-set line_dst_a_1 [gdb_get_line_number "a = 1;"]
+set line_dst_incr_a_2 [gdb_get_line_number "incr_a(2);"]
-mi_gdb_test "200-break-insert do_special_tests" \
- "200\\^done,bkpt=\{number=\"2\",type=\"breakpoint\",disp=\"keep\",enabled=\"y\",addr=\"$hex\",func=\"do_special_tests\",file=\".*var-cmd.c\",line=\"$line_dst_a_1\",times=\"0\"\}" \
+mi_gdb_test "200-break-insert $line_dst_incr_a_2" \
+ "200\\^done,bkpt=\{number=\"2\",type=\"breakpoint\",disp=\"keep\",enabled=\"y\",addr=\"$hex\",func=\"do_special_tests\",file=\".*var-cmd.c\",line=\"$line_dst_incr_a_2\",times=\"0\"\}" \
"break-insert operation"
send_gdb "-exec-continue\n"
gdb_expect {
- -re "\\^running\r\n${mi_gdb_prompt}\\*stopped,reason=\"breakpoint-hit\",bkptno=\"2\",thread-id=\"\[01\]\",frame=\{addr=\"$hex\",func=\"do_special_tests\",args=\\\[\\\],file=\".*var-cmd.c\",fullname=\"${fullname_syntax}${srcfile}\",line=\"$line_dst_a_1\"\}\r\n$mi_gdb_prompt$" {
+ -re "\\^running\r\n${mi_gdb_prompt}\\*stopped,reason=\"breakpoint-hit\",bkptno=\"2\",thread-id=\"\[01\]\",frame=\{addr=\"$hex\",func=\"do_special_tests\",args=\\\[\\\],file=\".*var-cmd.c\",fullname=\"${fullname_syntax}${srcfile}\",line=\"$line_dst_incr_a_2\"\}\r\n$mi_gdb_prompt$" {
pass "continue to do_special_tests"
}
timeout {
Index: gdb/testsuite/gdb.mi/mi2-var-display.exp
===================================================================
RCS file: /cvs/src/src/gdb/testsuite/gdb.mi/mi2-var-display.exp,v
retrieving revision 1.16
diff -u -r1.16 mi2-var-display.exp
--- gdb/testsuite/gdb.mi/mi2-var-display.exp 26 Mar 2008 13:36:51 -0000 1.16
+++ gdb/testsuite/gdb.mi/mi2-var-display.exp 1 Apr 2008 13:50:37 -0000
@@ -331,15 +331,15 @@
# Stop in "do_special_tests"
-set line_dst_a_1 [gdb_get_line_number "a = 1;"]
+set line_dst_incr_a_2 [gdb_get_line_number "incr_a(2);"]
-mi_gdb_test "200-break-insert do_special_tests" \
- "200\\^done,bkpt=\{number=\"2\",type=\"breakpoint\",disp=\"keep\",enabled=\"y\",addr=\"$hex\",func=\"do_special_tests\",file=\".*var-cmd.c\",line=\"$line_dst_a_1\",times=\"0\"\}" \
+mi_gdb_test "200-break-insert $line_dst_incr_a_2" \
+ "200\\^done,bkpt=\{number=\"2\",type=\"breakpoint\",disp=\"keep\",enabled=\"y\",addr=\"$hex\",func=\"do_special_tests\",file=\".*var-cmd.c\",line=\"$line_dst_incr_a_2\",times=\"0\"\}" \
"break-insert operation"
send_gdb "-exec-continue\n"
gdb_expect {
- -re "\\^running\r\n${mi_gdb_prompt}\\*stopped,reason=\"breakpoint-hit\",bkptno=\"2\",thread-id=\"\[01\]\",frame=\{addr=\"$hex\",func=\"do_special_tests\",args=\\\[\\\],file=\".*var-cmd.c\",fullname=\"${fullname_syntax}${srcfile}\",line=\"$line_dst_a_1\"\}\r\n$mi_gdb_prompt$" {
+ -re "\\^running\r\n${mi_gdb_prompt}\\*stopped,reason=\"breakpoint-hit\",bkptno=\"2\",thread-id=\"\[01\]\",frame=\{addr=\"$hex\",func=\"do_special_tests\",args=\\\[\\\],file=\".*var-cmd.c\",fullname=\"${fullname_syntax}${srcfile}\",line=\"$line_dst_incr_a_2\"\}\r\n$mi_gdb_prompt$" {
pass "continue to do_special_tests"
}
timeout {
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [Patch] mi-var-display regression failures fix
2008-04-01 14:05 [Patch] mi-var-display regression failures fix Marc Khouzam
@ 2008-04-01 14:53 ` Daniel Jacobowitz
2008-04-01 15:19 ` Marc Khouzam
2008-04-01 15:54 ` Marc Khouzam
0 siblings, 2 replies; 5+ messages in thread
From: Daniel Jacobowitz @ 2008-04-01 14:53 UTC (permalink / raw)
To: Marc Khouzam; +Cc: gdb-patches
On Tue, Apr 01, 2008 at 09:56:25AM -0400, Marc Khouzam wrote:
> There are a couple of new unexpected failures in MI regressions.
> I believe that an xfail marker was removed by mistake, which makes a couple of tests seem to fail.
The xfail didn't have a friendly comment explaining what it was for
:-) They've been xpassing by luck on some targets for a while. I
think the xfail was originally for a different problem, which was fixed.
> 2008-04-01 Marc Khouzam <marc.khouzam@ericsson.com>
>
> * gdb.mi/mi-var-display.exp: Stop at end of do_special_tests
> instead of beginning to make an extra test pass.
> * gdb.mi/mi2-var-display.exp: Likewise.
OK, thanks!
Are you listed in MAINTAINERS yet? If not, please add yourself to
write-after-approval.
--
Daniel Jacobowitz
CodeSourcery
^ permalink raw reply [flat|nested] 5+ messages in thread
* RE: [Patch] mi-var-display regression failures fix
2008-04-01 14:53 ` Daniel Jacobowitz
@ 2008-04-01 15:19 ` Marc Khouzam
2008-04-01 15:34 ` Daniel Jacobowitz
2008-04-01 15:54 ` Marc Khouzam
1 sibling, 1 reply; 5+ messages in thread
From: Marc Khouzam @ 2008-04-01 15:19 UTC (permalink / raw)
To: Daniel Jacobowitz; +Cc: gdb-patches
Thanks!
Any particular guidelines to follow for the CVS comment when committing?
-----Original Message-----
From: Daniel Jacobowitz [mailto:drow@false.org]
Sent: Tuesday, April 01, 2008 10:33 AM
To: Marc Khouzam
Cc: gdb-patches@sourceware.org
Subject: Re: [Patch] mi-var-display regression failures fix
On Tue, Apr 01, 2008 at 09:56:25AM -0400, Marc Khouzam wrote:
> There are a couple of new unexpected failures in MI regressions.
> I believe that an xfail marker was removed by mistake, which makes a couple of tests seem to fail.
The xfail didn't have a friendly comment explaining what it was for
:-) They've been xpassing by luck on some targets for a while. I
think the xfail was originally for a different problem, which was fixed.
> 2008-04-01 Marc Khouzam <marc.khouzam@ericsson.com>
>
> * gdb.mi/mi-var-display.exp: Stop at end of do_special_tests
> instead of beginning to make an extra test pass.
> * gdb.mi/mi2-var-display.exp: Likewise.
OK, thanks!
Are you listed in MAINTAINERS yet? If not, please add yourself to
write-after-approval.
--
Daniel Jacobowitz
CodeSourcery
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [Patch] mi-var-display regression failures fix
2008-04-01 15:19 ` Marc Khouzam
@ 2008-04-01 15:34 ` Daniel Jacobowitz
0 siblings, 0 replies; 5+ messages in thread
From: Daniel Jacobowitz @ 2008-04-01 15:34 UTC (permalink / raw)
To: Marc Khouzam; +Cc: gdb-patches
On Tue, Apr 01, 2008 at 10:52:54AM -0400, Marc Khouzam wrote:
> Thanks!
>
> Any particular guidelines to follow for the CVS comment when committing?
I generally use the changelog comment, unless it's too massively long.
--
Daniel Jacobowitz
CodeSourcery
^ permalink raw reply [flat|nested] 5+ messages in thread
* RE: [Patch] mi-var-display regression failures fix
2008-04-01 14:53 ` Daniel Jacobowitz
2008-04-01 15:19 ` Marc Khouzam
@ 2008-04-01 15:54 ` Marc Khouzam
1 sibling, 0 replies; 5+ messages in thread
From: Marc Khouzam @ 2008-04-01 15:54 UTC (permalink / raw)
To: Daniel Jacobowitz; +Cc: gdb-patches
> > 2008-04-01 Marc Khouzam <marc.khouzam@ericsson.com>
> >
> > * gdb.mi/mi-var-display.exp: Stop at end of do_special_tests
> > instead of beginning to make an extra test pass.
> > * gdb.mi/mi2-var-display.exp: Likewise.
>
> OK, thanks!
>
> Are you listed in MAINTAINERS yet? If not, please add yourself to
> write-after-approval.
Thanks!
I committed the patch (using the Changelog comment as a commit comment)
as well as:
gdb/ChangeLog
2008-04-01 Marc Khouzam <marc.khouzam@ericsson.com>
* MAINTAINERS: Added myself to section Write After Approval.
Index: gdb/MAINTAINERS
===================================================================
RCS file: /cvs/src/src/gdb/MAINTAINERS,v
retrieving revision 1.392
diff -u -r1.392 MAINTAINERS
--- gdb/MAINTAINERS 28 Mar 2008 16:43:14 -0000 1.392
+++ gdb/MAINTAINERS 1 Apr 2008 14:46:42 -0000
@@ -514,6 +514,7 @@
Jeff Johnston jjohnstn@redhat.com
Geoff Keating geoffk@redhat.com
Mark Kettenis kettenis@gnu.org
+Marc Khouzam marc.khouzam@ericsson.com
Jim Kingdon kingdon@panix.com
Jan Kratochvil jan.kratochvil@redhat.com
Jonathan Larmour jlarmour@redhat.co.uk
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2008-04-01 15:19 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-04-01 14:05 [Patch] mi-var-display regression failures fix Marc Khouzam
2008-04-01 14:53 ` Daniel Jacobowitz
2008-04-01 15:19 ` Marc Khouzam
2008-04-01 15:34 ` Daniel Jacobowitz
2008-04-01 15:54 ` Marc Khouzam
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox