public inbox for gdb-patches@sourceware.org
 help / color / mirror / Atom feed
From: Simon Marchi <simon.marchi@polymtl.ca>
To: Tom Tromey <tom@tromey.com>,
	Keith Seitz via Gdb-patches <gdb-patches@sourceware.org>
Subject: Re: [PATCH] Fix gdb.fortran "failed to extract expected results" errors
Date: Fri, 25 Feb 2022 11:48:56 -0500	[thread overview]
Message-ID: <4f0def89-1a03-3d2c-15a0-572f0bb7566a@polymtl.ca> (raw)
In-Reply-To: <87k0dioq6s.fsf@tromey.com>



On 2022-02-25 11:40, Tom Tromey wrote:
>>>>>> "Keith" == Keith Seitz via Gdb-patches <gdb-patches@sourceware.org> writes:
> 
> Keith> When running the gdb.fortran tests array-slices.exp and lbound-ubound.exp,
> Keith> the test suite throws several ERRORs on native-gdbserver/-m{32,64},
> Keith> and native-extended-gdbsever/-m{32,64}:
> 
> Keith> [on native-extended-gdbserver/-m64]
> Keith> Running /home/keiths/work/gdb/branches/testsuite-errors/linux/gdb/testsuite/../../../src/gdb/testsuite/gdb.fortran/array-slices.exp ...
> Keith> ERROR: failed to extract expected results
> Keith> ERROR: failed to extract expected results
> Keith> Running /home/keiths/work/gdb/branches/testsuite-errors/linux/gdb/testsuite/../../../src/gdb/testsuite/gdb.fortran/lbound-ubound.exp ...
> Keith> ERROR: failed to extract expected results for lbound
> 
> Keith> This occurs because the tests require inferior I/O which we do not have
> Keith> access to while using these targets.
> 
> Keith> This patch skips these tests when running on non-native targets.
> 
> Looks good to me.
> 
> Tom

An alternative would be to change those tests to not rely on inferior IO.

They could perhaps save the expected outcome to a string, which GDB would
read, rather than printing it to stdout.

But, that takes some time, and most importantly, someone who knows
Fortran :).  So I also think your patch is ok.

Simon

  reply	other threads:[~2022-02-25 16:49 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-02-24 17:41 Keith Seitz
2022-02-25 16:40 ` Tom Tromey
2022-02-25 16:48   ` Simon Marchi [this message]
2022-02-28 15:35     ` Keith Seitz
2022-03-03 20:02       ` Pedro Alves
2022-03-07 14:27         ` [PATCH] Make gdb.fortran/{array-slices,lbound-ubound} work against gdbserver Pedro Alves
2022-03-09 17:21           ` Tom Tromey

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=4f0def89-1a03-3d2c-15a0-572f0bb7566a@polymtl.ca \
    --to=simon.marchi@polymtl.ca \
    --cc=gdb-patches@sourceware.org \
    --cc=tom@tromey.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).