Module Name:    src
Committed By:   martin
Date:           Tue Sep  3 15:43:15 UTC 2024

Modified Files:
        src/tests/lib/libm [netbsd-10]: t_fenv.c

Log Message:
Pull up following revision(s) (requested by rin in ticket #816):

        tests/lib/libm/t_fenv.c: revision 1.16

The fetestexcept_trap test case only makes sense on FPUs that implement
exceptions.


To generate a diff of this commit:
cvs rdiff -u -r1.6.10.1 -r1.6.10.2 src/tests/lib/libm/t_fenv.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/tests/lib/libm/t_fenv.c
diff -u src/tests/lib/libm/t_fenv.c:1.6.10.1 src/tests/lib/libm/t_fenv.c:1.6.10.2
--- src/tests/lib/libm/t_fenv.c:1.6.10.1	Fri Feb 23 18:09:23 2024
+++ src/tests/lib/libm/t_fenv.c	Tue Sep  3 15:43:15 2024
@@ -1,4 +1,4 @@
-/* $NetBSD: t_fenv.c,v 1.6.10.1 2024/02/23 18:09:23 martin Exp $ */
+/* $NetBSD: t_fenv.c,v 1.6.10.2 2024/09/03 15:43:15 martin Exp $ */
 
 /*-
  * Copyright (c) 2014 The NetBSD Foundation, Inc.
@@ -29,7 +29,7 @@
  * POSSIBILITY OF SUCH DAMAGE.
  */
 #include <sys/cdefs.h>
-__RCSID("$NetBSD: t_fenv.c,v 1.6.10.1 2024/02/23 18:09:23 martin Exp $");
+__RCSID("$NetBSD: t_fenv.c,v 1.6.10.2 2024/09/03 15:43:15 martin Exp $");
 
 #include <atf-c.h>
 
@@ -195,6 +195,8 @@ ATF_TC_BODY(fetestexcept_trap, tc)
 {
 	int except;
 
+	FPU_EXC_PREREQ();
+
 	fedisableexcept(FE_ALL_EXCEPT);
 	ATF_CHECK_EQ_MSG((except = fegetexcept()), 0,
 	    "fegetexcept()=0x%x", except);

Reply via email to