tests/lib/libm/t_next: nexttoward works if it's just nextafter.

It's broken on platforms where long double and double aren't the same
and nexttoward isn't an alias for nextafter.
This commit is contained in:
riastradh 2024-05-11 01:44:12 +00:00
parent fd614d9435
commit afce20e57c
1 changed files with 4 additions and 2 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: t_next.c,v 1.4 2024/05/08 17:27:03 riastradh Exp $ */
/* $NetBSD: t_next.c,v 1.5 2024/05/11 01:44:12 riastradh Exp $ */
/*-
* Copyright (c) 2024 The NetBSD Foundation, Inc.
@ -27,7 +27,7 @@
*/
#include <sys/cdefs.h>
__RCSID("$NetBSD: t_next.c,v 1.4 2024/05/08 17:27:03 riastradh Exp $");
__RCSID("$NetBSD: t_next.c,v 1.5 2024/05/11 01:44:12 riastradh Exp $");
#include <atf-c.h>
#include <float.h>
@ -391,7 +391,9 @@ ATF_TC_BODY(next_near_0, tc)
#endif
};
#ifdef __HAVE_LONG_DOUBLE
atf_tc_expect_fail("PR 58236: nexttoward(3) is broken on subnormals");
#endif
check(x, __arraycount(x));
}