Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/tests/kernel Make fenv.h optional for this test to unbreak t...
details: https://anonhg.NetBSD.org/src/rev/b5b5abb42589
branches: trunk
changeset: 836909:b5b5abb42589
user: riastradh <riastradh%NetBSD.org@localhost>
date: Mon Nov 12 05:02:00 2018 +0000
description:
Make fenv.h optional for this test to unbreak the vax build.
diffstat:
tests/kernel/h_segv.c | 8 ++++++--
1 files changed, 6 insertions(+), 2 deletions(-)
diffs (30 lines):
diff -r 17df99cd6c49 -r b5b5abb42589 tests/kernel/h_segv.c
--- a/tests/kernel/h_segv.c Mon Nov 12 04:37:54 2018 +0000
+++ b/tests/kernel/h_segv.c Mon Nov 12 05:02:00 2018 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: h_segv.c,v 1.9 2018/11/11 01:26:08 riastradh Exp $ */
+/* $NetBSD: h_segv.c,v 1.10 2018/11/12 05:02:00 riastradh Exp $ */
/*-
* Copyright (c) 2017 The NetBSD Foundation, Inc.
@@ -29,7 +29,9 @@
* POSSIBILITY OF SUCH DAMAGE.
*/
#include <sys/cdefs.h>
-__RCSID("$NetBSD: h_segv.c,v 1.9 2018/11/11 01:26:08 riastradh Exp $");
+__RCSID("$NetBSD: h_segv.c,v 1.10 2018/11/12 05:02:00 riastradh Exp $");
+
+#define __TEST_FENV
#include <sys/types.h>
#include <sys/mman.h>
@@ -107,7 +109,9 @@
volatile double a = getpid();
volatile double b = strtol("0", NULL, 0);
+#ifdef __HAVE_FENV
feenableexcept(FE_ALL_EXCEPT);
+#endif
usleep((int)(a/b));
}
Home |
Main Index |
Thread Index |
Old Index