Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/tests Remove some cruft that is no longer needed.



details:   https://anonhg.NetBSD.org/src/rev/68b58c6f5771
branches:  trunk
changeset: 768979:68b58c6f5771
user:      jruoho <jruoho%NetBSD.org@localhost>
date:      Mon Aug 29 17:39:54 2011 +0000

description:
Remove some cruft that is no longer needed.

diffstat:

 tests/include/sys/t_bitops.c     |   8 ++------
 tests/lib/libc/stdlib/t_strtod.c |  10 ++--------
 tests/lib/libm/t_floor.c         |   9 ++-------
 3 files changed, 6 insertions(+), 21 deletions(-)

diffs (114 lines):

diff -r d14d1172f00c -r 68b58c6f5771 tests/include/sys/t_bitops.c
--- a/tests/include/sys/t_bitops.c      Mon Aug 29 17:31:50 2011 +0000
+++ b/tests/include/sys/t_bitops.c      Mon Aug 29 17:39:54 2011 +0000
@@ -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);
diff -r d14d1172f00c -r 68b58c6f5771 tests/lib/libc/stdlib/t_strtod.c
--- a/tests/lib/libc/stdlib/t_strtod.c  Mon Aug 29 17:31:50 2011 +0000
+++ b/tests/lib/libc/stdlib/t_strtod.c  Mon Aug 29 17:39:54 2011 +0000
@@ -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 <otto%drijf.net@localhost>, 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";
 
diff -r d14d1172f00c -r 68b58c6f5771 tests/lib/libm/t_floor.c
--- a/tests/lib/libm/t_floor.c  Mon Aug 29 17:31:50 2011 +0000
+++ b/tests/lib/libm/t_floor.c  Mon Aug 29 17:39:54 2011 +0000
@@ -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;



Home | Main Index | Thread Index | Old Index