public inbox for dwz@sourceware.org
 help / color / mirror / Atom feed
From: Tom de Vries <tdevries@suse.de>
To: Mark Wielaard <mark@klomp.org>
Cc: dwz@sourceware.org, jakub@redhat.com
Subject: Re: [PATCH] Add check-valgrind
Date: Fri, 26 Mar 2021 08:09:56 +0100	[thread overview]
Message-ID: <a1d98123-2d7a-ed82-9a5e-fc859a244eb7@suse.de> (raw)
In-Reply-To: <20210325203254.GG2685@wildebeest.org>

On 3/25/21 9:32 PM, Mark Wielaard wrote:
> Hi,
> 
> On Thu, Mar 25, 2021 at 02:57:17PM +0100, Tom de Vries wrote:
>> Add a make target check-valgrind, that applies valgrind to dwz when used in
>> the testsuite.
>>
>> Any comments?
> 
> It might be good to simply always run under valgrind when it is
> installed. That makes make check slightly slower by default, but it
> makes sure things are always also ran under valgrind if available.
> 

Hmm, makes sense.  Make check with dwz-tests.exp goes from 11s to 34s on
my laptop, which is still bearable.

OTOH, I also run the external testsuite once in a while, and that one
goes from 1m19s to 15m17s, which I don't like as default behaviour.

So I'm not sure yet about making this the default.

> To make sure that a valgrind tool error really causes a check failure use
> --error-exitcode=99 (or some other non-zero code):
> 
>    --error-exitcode=<number> [default: 0]
>        Specifies an alternative exit code to return if Valgrind reported
>        any errors in the run. When set to the default value (zero), the
>        return value from Valgrind will always be the return value of the
>        process being simulated. When set to a nonzero value, that value is
>        returned instead, if Valgrind detects any errors. This is useful
>        for using Valgrind as part of an automated test suite, since it
>        makes it easy to detect test cases for which Valgrind has reported
>        errors, just by inspecting return codes.
> 

Thanks, I've included that, and committed.

- Tom

      reply	other threads:[~2021-03-26  7:09 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-03-25 13:57 Tom de Vries
2021-03-25 20:32 ` Mark Wielaard
2021-03-26  7:09   ` Tom de Vries [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=a1d98123-2d7a-ed82-9a5e-fc859a244eb7@suse.de \
    --to=tdevries@suse.de \
    --cc=dwz@sourceware.org \
    --cc=jakub@redhat.com \
    --cc=mark@klomp.org \
    /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).