Module Name:    src
Committed By:   jruoho
Date:           Mon Aug 29 17:39:55 UTC 2011

Modified Files:
        src/tests/include/sys: t_bitops.c
        src/tests/lib/libc/stdlib: t_strtod.c
        src/tests/lib/libm: t_floor.c

Log Message:
Remove some cruft that is no longer needed.


To generate a diff of this commit:
cvs rdiff -u -r1.9 -r1.10 src/tests/include/sys/t_bitops.c
cvs rdiff -u -r1.25 -r1.26 src/tests/lib/libc/stdlib/t_strtod.c
cvs rdiff -u -r1.7 -r1.8 src/tests/lib/libm/t_floor.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/include/sys/t_bitops.c
diff -u src/tests/include/sys/t_bitops.c:1.9 src/tests/include/sys/t_bitops.c:1.10
--- src/tests/include/sys/t_bitops.c:1.9	Mon Aug 29 12:50:50 2011
+++ src/tests/include/sys/t_bitops.c	Mon Aug 29 17:39:54 2011
@@ -1,4 +1,4 @@
-/*	$NetBSD: t_bitops.c,v 1.9 2011/08/29 12:50:50 jruoho Exp $ */
+/*	$NetBSD: t_bitops.c,v 1.10 2011/08/29 17:39:54 jruoho Exp $ */
 
 /*-
  * Copyright (c) 2011 The NetBSD Foundation, Inc.
@@ -29,13 +29,12 @@
  * POSSIBILITY OF SUCH DAMAGE.
  */
 #include <sys/cdefs.h>
-__RCSID("$NetBSD: t_bitops.c,v 1.9 2011/08/29 12:50:50 jruoho Exp $");
+__RCSID("$NetBSD: t_bitops.c,v 1.10 2011/08/29 17:39:54 jruoho Exp $");
 
 #include <atf-c.h>
 
 #include <sys/cdefs.h>
 #include <sys/bitops.h>
-#include <sys/utsname.h>
 
 #include <math.h>
 #include <stdlib.h>
@@ -165,15 +164,12 @@
 
 ATF_TC_BODY(ilog2_log2, tc)
 {
-	struct utsname utsname;
 	double  x, y;
 	uint64_t i;
 
 	/*
 	 * This may fail under QEMU; see PR misc/44767.
 	 */
-	ATF_REQUIRE(uname(&utsname) == 0);
-
 	for (i = 1; i < UINT32_MAX; i += UINT16_MAX) {
 
 		x = log2(i);

Index: src/tests/lib/libc/stdlib/t_strtod.c
diff -u src/tests/lib/libc/stdlib/t_strtod.c:1.25 src/tests/lib/libc/stdlib/t_strtod.c:1.26
--- src/tests/lib/libc/stdlib/t_strtod.c:1.25	Mon Aug 29 12:50:50 2011
+++ src/tests/lib/libc/stdlib/t_strtod.c	Mon Aug 29 17:39:54 2011
@@ -1,4 +1,4 @@
-/*	$NetBSD: t_strtod.c,v 1.25 2011/08/29 12:50:50 jruoho Exp $ */
+/*	$NetBSD: t_strtod.c,v 1.26 2011/08/29 17:39:54 jruoho Exp $ */
 
 /*-
  * Copyright (c) 2011 The NetBSD Foundation, Inc.
@@ -32,9 +32,7 @@
 /* Public domain, Otto Moerbeek <o...@drijf.net>, 2006. */
 
 #include <sys/cdefs.h>
-__RCSID("$NetBSD: t_strtod.c,v 1.25 2011/08/29 12:50:50 jruoho Exp $");
-
-#include <sys/utsname.h>
+__RCSID("$NetBSD: t_strtod.c,v 1.26 2011/08/29 17:39:54 jruoho Exp $");
 
 #include <errno.h>
 #include <math.h>
@@ -265,16 +263,12 @@
 {
 #if defined(__i386__) || defined(__amd64__) || defined(__sparc__)
 
-	struct utsname utsname;
-
 	/*
 	 * Test that strtod(3) honors the current rounding mode.
 	 * The used value is somewhere near 1 + DBL_EPSILON + FLT_EPSILON.
 	 *
 	 * May fail under QEMU; cf. PR misc/44767.
 	 */
-	ATF_REQUIRE(uname(&utsname) == 0);
-
 	const char *val =
 	    "1.00000011920928977282585492503130808472633361816406";
 

Index: src/tests/lib/libm/t_floor.c
diff -u src/tests/lib/libm/t_floor.c:1.7 src/tests/lib/libm/t_floor.c:1.8
--- src/tests/lib/libm/t_floor.c:1.7	Mon Aug 29 12:50:50 2011
+++ src/tests/lib/libm/t_floor.c	Mon Aug 29 17:39:54 2011
@@ -1,4 +1,4 @@
-/* $NetBSD: t_floor.c,v 1.7 2011/08/29 12:50:50 jruoho Exp $ */
+/* $NetBSD: t_floor.c,v 1.8 2011/08/29 17:39:54 jruoho Exp $ */
 
 /*-
  * Copyright (c) 2011 The NetBSD Foundation, Inc.
@@ -29,9 +29,7 @@
  * POSSIBILITY OF SUCH DAMAGE.
  */
 #include <sys/cdefs.h>
-__RCSID("$NetBSD: t_floor.c,v 1.7 2011/08/29 12:50:50 jruoho Exp $");
-
-#include <sys/utsname.h>
+__RCSID("$NetBSD: t_floor.c,v 1.8 2011/08/29 17:39:54 jruoho Exp $");
 
 #include <atf-c.h>
 #include <math.h>
@@ -53,7 +51,6 @@
 
 ATF_TC_BODY(floor, tc)
 {
-	struct utsname utsname;
 	const int n = 10240;
 	double x, y;
 	int i;
@@ -61,8 +58,6 @@
 	/*
 	 * This may fail under QEMU; see PR misc/44767.
 	 */
-	ATF_REQUIRE(uname(&utsname) == 0);
-
 	for (i = 0; i < n; i++) {
 
 		x = i + 0.999999999;

Reply via email to