[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Use of ly:expect-warning in regtests
From: |
Dan Eble |
Subject: |
Re: Use of ly:expect-warning in regtests |
Date: |
Fri, 2 Oct 2020 08:38:57 -0400 |
On Oct 2, 2020, at 08:24, Michael Käppler <xmichael-k@web.de> wrote:
>
> Other regtests, however, use ly:expect-warning to suppress these
> warnings and output a new warning instead, if
> the expected warning is missing.
...
> Some use ly:expect-warning in combination with ly:set-option
> 'warning-as-error.
...
> But some set it to #t:
> git grep "(ly:set-option 'warning-as-error #t" input/regression/* | wc -l
> 9
That is how to test an expected warning.
> Mostly they set it to #f:
>
> git grep "(ly:set-option 'warning-as-error #f" input/regression/* | wc -l
> 39
I don't know the history behind that, but it doesn't seem useful. It could be
a mistake.
—
Dan