This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: [PATCH v3 3/3] Add tests with floating-point arguments for err* and verr* functions
- From: Florian Weimer <fweimer at redhat dot com>
- To: "Gabriel F. T. Gomes" <gabriel at inconstante dot eti dot br>
- Cc: <libc-alpha at sourceware dot org>
- Date: Mon, 05 Nov 2018 12:41:47 +0100
- Subject: Re: [PATCH v3 3/3] Add tests with floating-point arguments for err* and verr* functions
- References: <20180828215427.18653-1-gabriel@inconstante.eti.br> <20180828215427.18653-4-gabriel@inconstante.eti.br>
* Gabriel F. T. Gomes:
> +static void
> +callback_err (void *closure)
> +{
> + err (0, "%Lf", (long double) -1);
> +}
Same problem as in the other test: You need to initialize errno in each
subprocess callback.
Otherwise, looks okay. You can commit if you add the errno
initialization.
Thanks,
Florian