public inbox for libstdc++@gcc.gnu.org
 help / color / mirror / Atom feed
From: Marc Poulhies <mpoulhies@kalrayinc.com>
To: Jonathan Wakely <jwakely@redhat.com>
Cc: libstdc++ <libstdc++@gcc.gnu.org>,
	gcc-patches <gcc-patches@gcc.gnu.org>,
	Luc Michel <lmichel@kalray.eu>
Subject: Re: [NEWS] libstdc++: Fix testsuite for skipping gdb tests on remote/non-native target
Date: Thu, 22 Jul 2021 11:19:17 +0200 (CEST)	[thread overview]
Message-ID: <96439410.1009244.1626945557332.JavaMail.zimbra@kalray.eu> (raw)
In-Reply-To: <CACb0b4nw+uxA6XYST2d0P2A0VOjwfqUzV6WwUo2BgjJyW4uOqA@mail.gmail.com>

----- Original Message -----
> From: "Jonathan Wakely" <jwakely@redhat.com>
> To: "Marc Poulhies" <mpoulhies@kalrayinc.com>
> Cc: "libstdc++" <libstdc++@gcc.gnu.org>, "gcc-patches" <gcc-patches@gcc.gnu.org>, "Luc Michel" <lmichel@kalray.eu>
> Sent: Wednesday, July 21, 2021 5:53:52 PM
> Subject: Re: [NEWS] libstdc++: Fix testsuite for skipping gdb tests on remote/non-native target

> Thanks for the patch. I agree we should skip the version checks, not
> only the actual tests. But I wonder whether we want to do that in
> xmethods.exp and prettyprinters.exp rather than in the gdb_batch_check
> proc. Or maybe like this instead:
> 
> I don't think it really makes much difference, I'm just unsure what is
> "cleaner" and more consistent with DG conventions and/or the rest of
> the gdb-test.exp file.

Here are a bit more information on the issue we are having.
While trying to understand why the testsuite is taking a long time to execute, we (Luc in Cc) discovered that the logs contain:

Spawning: gdb -nw -nx -quiet -batch -ex "python print(gdb.lookup_global_symbol)"
spawn -ignore SIGHUP kvx-mppa --unnamed-log --bootcluster=node0 --no-trap --no-gdb-attach --dcache-no-check -- gdb -nw -nx -quiet -batch -ex python print(gdb.lookup_global_symbol)
UNSUPPORTED: prettyprinters.exp
testcase /work1/mpoulhies/tools-csw/gcc/libstdc++-v3/testsuite/libstdc++-prettyprinters/prettyprinters.exp completed in 613 seconds

kvx-mppa being a simulator and gdb the host (x86) binary.
The strangest part being that running the command by hand will fail immediately, but when DG is running the tests, it waits until the timeout is reached: we don't understand this behavior, but we get several <defunct> processes probably waiting to be joined..

I don't have a strong opinion here as I'm really no DG expert. I find the filtering in gdb-test maybe more robust as it prevents any error like the above. Having the test in prettyprinters/xmethod allows for quicker exit (saves 15s here), but I don't see that as a strong argument.

Thanks for the review,

Marc





      reply	other threads:[~2021-07-22  9:19 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-07-20 14:12 Marc Poulhies
2021-07-21 15:02 ` [NEWS] " Marc Poulhies
2021-07-21 15:53   ` Jonathan Wakely
2021-07-22  9:19     ` Marc Poulhies [this message]

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=96439410.1009244.1626945557332.JavaMail.zimbra@kalray.eu \
    --to=mpoulhies@kalrayinc.com \
    --cc=gcc-patches@gcc.gnu.org \
    --cc=jwakely@redhat.com \
    --cc=libstdc++@gcc.gnu.org \
    --cc=lmichel@kalray.eu \
    /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).