* Testsuite tweak - properly bail out of asm-source.exp
@ 2002-04-17 18:31 Zack Weinberg
2002-04-17 19:59 ` Andrew Cagney
0 siblings, 1 reply; 5+ messages in thread
From: Zack Weinberg @ 2002-04-17 18:31 UTC (permalink / raw)
To: gdb-patches
If asm-source.exp detects that there is no support for assembly source
debugging on the selected target, it issues a warning to that effect:
if { "${asm-arch}" == "" } {
gdb_suppress_entire_file "Assembly source test -- not implemented for this t
arget."
}
but then it goes on to run the tests anyway, and they all fail, often
with nasty error messages too. Looking a bit lower, I see that one is
supposed to return after calling gdb_suppress_entire_file. This patch
just adds a return to the if block.
zw
* gdb.asm/asm-source.exp: Return after calling
gdb_suppress_entire_file.
===================================================================
Index: testsuite/gdb.asm/asm-source.exp
--- testsuite/gdb.asm/asm-source.exp 8 Apr 2002 00:01:06 -0000 1.21
+++ testsuite/gdb.asm/asm-source.exp 18 Apr 2002 01:29:59 -0000
@@ -65,6 +65,7 @@ if [istarget "xstormy16-*-*"] then {
}
if { "${asm-arch}" == "" } {
gdb_suppress_entire_file "Assembly source test -- not implemented for this target."
+ return;
}
# Watch out, we are invoking the assembler, but the testsuite sets multilib
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Testsuite tweak - properly bail out of asm-source.exp
2002-04-17 18:31 Testsuite tweak - properly bail out of asm-source.exp Zack Weinberg
@ 2002-04-17 19:59 ` Andrew Cagney
2002-04-18 10:40 ` Zack Weinberg
0 siblings, 1 reply; 5+ messages in thread
From: Andrew Cagney @ 2002-04-17 19:59 UTC (permalink / raw)
To: Zack Weinberg; +Cc: gdb-patches
See:
2001-11-09 Andrew Cagney <ac131313@redhat.com>
* gdb.asm/asm-source.exp: Supress file, instead of skip, when not
implemented.
and, especially, the number of tests that have been contributed since
that change went in.
enjoy,
Andrew
> If asm-source.exp detects that there is no support for assembly source
> debugging on the selected target, it issues a warning to that effect:
>
> if { "${asm-arch}" == "" } {
> gdb_suppress_entire_file "Assembly source test -- not implemented for this t
> arget."
> }
>
> but then it goes on to run the tests anyway, and they all fail, often
> with nasty error messages too. Looking a bit lower, I see that one is
> supposed to return after calling gdb_suppress_entire_file. This patch
> just adds a return to the if block.
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Testsuite tweak - properly bail out of asm-source.exp
2002-04-17 19:59 ` Andrew Cagney
@ 2002-04-18 10:40 ` Zack Weinberg
2002-04-18 11:10 ` Michael Snyder
2002-04-18 11:35 ` Fernando Nasser
0 siblings, 2 replies; 5+ messages in thread
From: Zack Weinberg @ 2002-04-18 10:40 UTC (permalink / raw)
To: Andrew Cagney; +Cc: gdb-patches
On Wed, Apr 17, 2002 at 10:59:07PM -0400, Andrew Cagney wrote:
> See:
>
> 2001-11-09 Andrew Cagney <ac131313@redhat.com>
>
> * gdb.asm/asm-source.exp: Supress file, instead of skip, when not
> implemented.
>
> and, especially, the number of tests that have been contributed since
> that change went in.
Okay, if it was deliberately done like that, I withdraw the patch
zw
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Testsuite tweak - properly bail out of asm-source.exp
2002-04-18 10:40 ` Zack Weinberg
@ 2002-04-18 11:10 ` Michael Snyder
2002-04-18 11:35 ` Fernando Nasser
1 sibling, 0 replies; 5+ messages in thread
From: Michael Snyder @ 2002-04-18 11:10 UTC (permalink / raw)
To: Zack Weinberg; +Cc: gdb-patches
Zack Weinberg wrote:
>
> On Wed, Apr 17, 2002 at 10:59:07PM -0400, Andrew Cagney wrote:
> > See:
> >
> > 2001-11-09 Andrew Cagney <ac131313@redhat.com>
> >
> > * gdb.asm/asm-source.exp: Supress file, instead of skip, when not
> > implemented.
> >
> > and, especially, the number of tests that have been contributed since
> > that change went in.
>
> Okay, if it was deliberately done like that, I withdraw the patch
The Maintainer moves in mysterious ways... ;-)
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Testsuite tweak - properly bail out of asm-source.exp
2002-04-18 10:40 ` Zack Weinberg
2002-04-18 11:10 ` Michael Snyder
@ 2002-04-18 11:35 ` Fernando Nasser
1 sibling, 0 replies; 5+ messages in thread
From: Fernando Nasser @ 2002-04-18 11:35 UTC (permalink / raw)
To: Zack Weinberg; +Cc: Andrew Cagney, gdb-patches
Zack Weinberg wrote:
>
> On Wed, Apr 17, 2002 at 10:59:07PM -0400, Andrew Cagney wrote:
> > See:
> >
> > 2001-11-09 Andrew Cagney <ac131313@redhat.com>
> >
> > * gdb.asm/asm-source.exp: Supress file, instead of skip, when not
> > implemented.
> >
> > and, especially, the number of tests that have been contributed since
> > that change went in.
>
> Okay, if it was deliberately done like that, I withdraw the patch
>
ACK.
But thanks for caring and spending the time to send the patch in.
Regards,
Fernando
--
Fernando Nasser
Red Hat Canada Ltd. E-Mail: fnasser@redhat.com
2323 Yonge Street, Suite #300
Toronto, Ontario M4P 2C9
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2002-04-18 18:35 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-04-17 18:31 Testsuite tweak - properly bail out of asm-source.exp Zack Weinberg
2002-04-17 19:59 ` Andrew Cagney
2002-04-18 10:40 ` Zack Weinberg
2002-04-18 11:10 ` Michael Snyder
2002-04-18 11:35 ` Fernando Nasser
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox