[PATCH] stdlib/strfrom: Remove the -NAN testcase (bug 29501)

Florian Weimer fweimer@redhat.com
Fri Sep 16 09:53:14 GMT 2022


* Letu Ren via Libc-alpha:

> diff --git a/stdlib/tst-strfrom.c b/stdlib/tst-strfrom.c
> index 3a447eac12..1533fb9170 100644
> --- a/stdlib/tst-strfrom.c
> +++ b/stdlib/tst-strfrom.c
> @@ -37,7 +37,6 @@ static const struct test tests[] = {
>    TEST ("5.900000e-16", "%e", 50, 12, 5.9e-16),
>    TEST ("1.234500e+20", "%e", 50, 12, 12.345e19),
>    TEST ("1.000000e+05", "%e", 50, 12, 1e5),
> -  TEST ("-NAN", "%G", 50, 4, -NAN_),
>    TEST ("-inf", "%g", 50, 4, -INF),
>    TEST ("inf", "%g", 50, 3, INF)
>  };

Shouldn't the test verify that the result is "NAN" or "-NAN"?  That part
is still valid.

Thanks,
Florian



More information about the Libc-alpha mailing list