| @@ -1,14 +1,14 @@ | | | @@ -1,14 +1,14 @@ |
1 | /* $NetBSD: t_next.c,v 1.2 2024/05/05 14:29:38 riastradh Exp $ */ | | 1 | /* $NetBSD: t_next.c,v 1.3 2024/05/05 14:34:58 riastradh Exp $ */ |
2 | | | 2 | |
3 | /*- | | 3 | /*- |
4 | * Copyright (c) 2024 The NetBSD Foundation, Inc. | | 4 | * Copyright (c) 2024 The NetBSD Foundation, Inc. |
5 | * All rights reserved. | | 5 | * All rights reserved. |
6 | * | | 6 | * |
7 | * Redistribution and use in source and binary forms, with or without | | 7 | * Redistribution and use in source and binary forms, with or without |
8 | * modification, are permitted provided that the following conditions | | 8 | * modification, are permitted provided that the following conditions |
9 | * are met: | | 9 | * are met: |
10 | * 1. Redistributions of source code must retain the above copyright | | 10 | * 1. Redistributions of source code must retain the above copyright |
11 | * notice, this list of conditions and the following disclaimer. | | 11 | * notice, this list of conditions and the following disclaimer. |
12 | * 2. Redistributions in binary form must reproduce the above copyright | | 12 | * 2. Redistributions in binary form must reproduce the above copyright |
13 | * notice, this list of conditions and the following disclaimer in the | | 13 | * notice, this list of conditions and the following disclaimer in the |
14 | * documentation and/or other materials provided with the distribution. | | 14 | * documentation and/or other materials provided with the distribution. |
| @@ -17,39 +17,44 @@ | | | @@ -17,39 +17,44 @@ |
17 | * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED | | 17 | * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED |
18 | * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR | | 18 | * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR |
19 | * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS | | 19 | * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS |
20 | * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR | | 20 | * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR |
21 | * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF | | 21 | * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF |
22 | * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS | | 22 | * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS |
23 | * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN | | 23 | * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN |
24 | * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) | | 24 | * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) |
25 | * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE | | 25 | * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE |
26 | * POSSIBILITY OF SUCH DAMAGE. | | 26 | * POSSIBILITY OF SUCH DAMAGE. |
27 | */ | | 27 | */ |
28 | | | 28 | |
29 | #include <sys/cdefs.h> | | 29 | #include <sys/cdefs.h> |
30 | __RCSID("$NetBSD: t_next.c,v 1.2 2024/05/05 14:29:38 riastradh Exp $"); | | 30 | __RCSID("$NetBSD: t_next.c,v 1.3 2024/05/05 14:34:58 riastradh Exp $"); |
31 | | | 31 | |
32 | #include <atf-c.h> | | 32 | #include <atf-c.h> |
33 | #include <float.h> | | 33 | #include <float.h> |
34 | #include <math.h> | | 34 | #include <math.h> |
35 | | | 35 | |
36 | #ifdef __vax__ /* XXX PR 57881: vax libm is missing various symbols */ | | 36 | #ifdef __vax__ /* XXX PR 57881: vax libm is missing various symbols */ |
37 | | | 37 | |
38 | ATF_TC(vaxafter) | | 38 | ATF_TC(vaxafter); |
39 | ATF_TC_HEAD(vaxafter, tc) | | 39 | ATF_TC_HEAD(vaxafter, tc) |
40 | { | | 40 | { |
41 | | | 41 | |
42 | atf_expect_fail("PR 57881: vax libm is missing various symbols") | | 42 | atf_tc_set_md_var(tc, "descr", "vax nextafter/nexttoward reminder"); |
| | | 43 | } |
| | | 44 | ATF_TC_BODY(vaxafter, tc) |
| | | 45 | { |
| | | 46 | |
| | | 47 | atf_tc_expect_fail("PR 57881: vax libm is missing various symbols"); |
43 | atf_tc_fail("missing nextafter{,f,l} and nexttoward{,f,l} on vax"); | | 48 | atf_tc_fail("missing nextafter{,f,l} and nexttoward{,f,l} on vax"); |
44 | } | | 49 | } |
45 | | | 50 | |
46 | #else /* !__vax__ */ | | 51 | #else /* !__vax__ */ |
47 | | | 52 | |
48 | #define CHECK(x, y) \ | | 53 | #define CHECK(x, y) \ |
49 | ATF_CHECK_EQ_MSG((x), (y), #x"=%La=%Lg, "#y"=%La=%Lg", \ | | 54 | ATF_CHECK_EQ_MSG((x), (y), #x"=%La=%Lg, "#y"=%La=%Lg", \ |
50 | (long double)(x), (long double)(x), \ | | 55 | (long double)(x), (long double)(x), \ |
51 | (long double)(y), (long double)(y)) | | 56 | (long double)(y), (long double)(y)) |
52 | | | 57 | |
53 | ATF_TC(nextafter); | | 58 | ATF_TC(nextafter); |
54 | ATF_TC_HEAD(nextafter, tc) | | 59 | ATF_TC_HEAD(nextafter, tc) |
55 | { | | 60 | { |