public inbox for gdb-patches@sourceware.org
 help / color / mirror / Atom feed
From: Tom de Vries <tdevries@suse.de>
To: Simon Marchi <simark@simark.ca>,
	"Maciej W. Rozycki" <macro@embecosm.com>,
	Simon Marchi <simon.marchi@efficios.com>
Cc: gdb-patches@sourceware.org
Subject: Re: [PATCH] gdb/testsuite: fix gdb.guile/scm-parameter.exp "wrong type argument" test pattern
Date: Wed, 26 Oct 2022 09:15:20 +0200	[thread overview]
Message-ID: <b63db8a9-0824-3fb2-6d7d-92b46b0353f6@suse.de> (raw)
In-Reply-To: <8ef2b43b-9ac4-3a50-3c93-753c8dcfe001@simark.ca>

On 10/25/22 03:08, Simon Marchi via Gdb-patches wrote:
> 
> 
> On 2022-10-24 19:22, Maciej W. Rozycki wrote:
>> On Mon, 24 Oct 2022, Simon Marchi wrote:
>>
>>> I believe that the first two lines are output by Guile itself, in the
>>> SCM_ASSERT_TYPE macro.  I tried on different systems, different Guile
>>> versions (2.0, 2.2 and 3.0) and I always get the former output, never
>>> the output the test expects.  I presume the patch below isn't right, as
>>> there is surely some systems that do print the latter output, otherwise
>>> Maciej (the original author) would have noticed it.  I presume we'll
>>> need to accept both outputs.  But I'd like we if could clarify when we
>>> get which.
>>
>>   FTR I'm still looking into it and like you I have hesitated to just paper
>> the issue over by allowing both outputs without first understanding what
>> is really going on here.  I cannot rule out a distribution-specific patch
>> causing a discrepancy here, but I feel like tracking it down.
>>
>>   NB guile 2.0.13 here, reporting as:
>>
>> guile (GNU Guile) 2.0.13
>> Packaged by Debian (2.0.13-deb+1-5.4)
> 
> According to that version number, it looks like Ubuntu 20.04?
> 
>    https://packages.ubuntu.com/focal/guile-2.0
> 
> I tried building on Ubuntu 20.04 against guile-2.0, and I see the same
> result as you.  And when I try guile2.0 on Arch Linux (this package
> [1]), I also see the same result as you.  So I must have tested it wrong
> previously.
> 
> You can dig further if you want, but I'd be fine just accepting both
> outputs and saying that guile-2.0 outputs the additional ERROR: while
> subsequent versions do not.
> 

FWIW, I did the same here in commit 6bbe1a929c6 ("[gdb/testsuite] Fix 
gdb.guile/scm-breakpoint.exp with guile 3.0").

Thanks,
- Tom


  reply	other threads:[~2022-10-26  7:15 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-10-24 16:43 Simon Marchi
2022-10-24 23:22 ` Maciej W. Rozycki
2022-10-25  1:08   ` Simon Marchi
2022-10-26  7:15     ` Tom de Vries [this message]
2022-10-26 15:31       ` Simon Marchi
2022-10-29 13:56         ` [OB PATCH] gdb/testsuite: Wrap `param_integer_error' in gdb.guile/scm-parameter.exp Maciej W. Rozycki
2022-10-31 12:57           ` Simon Marchi

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=b63db8a9-0824-3fb2-6d7d-92b46b0353f6@suse.de \
    --to=tdevries@suse.de \
    --cc=gdb-patches@sourceware.org \
    --cc=macro@embecosm.com \
    --cc=simark@simark.ca \
    --cc=simon.marchi@efficios.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).