Source-Changes-HG archive

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

[src/trunk]: src/tests Do not skip the QEMU bugs but instead mark these as ex...



details:   https://anonhg.NetBSD.org/src/rev/59b21d181084
branches:  trunk
changeset: 763565:59b21d181084
user:      jruoho <jruoho%NetBSD.org@localhost>
date:      Fri Mar 25 10:42:38 2011 +0000

description:
Do not skip the QEMU bugs but instead mark these as expected failures.

diffstat:

 tests/include/sys/t_bitops.c |   4 ++--
 tests/lib/libm/t_ceil.c      |  11 ++---------
 tests/lib/libm/t_floor.c     |   6 +++---
 3 files changed, 7 insertions(+), 14 deletions(-)

diffs (80 lines):

diff -r c3c95a2a854b -r 59b21d181084 tests/include/sys/t_bitops.c
--- a/tests/include/sys/t_bitops.c      Fri Mar 25 10:30:35 2011 +0000
+++ b/tests/include/sys/t_bitops.c      Fri Mar 25 10:42:38 2011 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: t_bitops.c,v 1.5 2011/03/25 10:00:31 jruoho Exp $ */
+/*     $NetBSD: t_bitops.c,v 1.6 2011/03/25 10:42:38 jruoho Exp $ */
 
 /*-
  * Copyright (c) 2011 The NetBSD Foundation, Inc.
@@ -168,7 +168,7 @@
         * This may fail under QEMU; see PR misc/44767.
         */
        if (system("cpuctl identify 0 | grep -q QEMU") == 0)
-               atf_tc_skip("Test not applicable on QEMU");
+               atf_tc_expect_fail("PR misc/44767");
 
        for (i = 1; i < UINT32_MAX; i += UINT16_MAX) {
 
diff -r c3c95a2a854b -r 59b21d181084 tests/lib/libm/t_ceil.c
--- a/tests/lib/libm/t_ceil.c   Fri Mar 25 10:30:35 2011 +0000
+++ b/tests/lib/libm/t_ceil.c   Fri Mar 25 10:42:38 2011 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: t_ceil.c,v 1.2 2011/03/25 10:00:32 jruoho Exp $ */
+/* $NetBSD: t_ceil.c,v 1.3 2011/03/25 10:42:38 jruoho Exp $ */
 
 /*-
  * Copyright (c) 2011 The NetBSD Foundation, Inc.
@@ -29,11 +29,10 @@
  * POSSIBILITY OF SUCH DAMAGE.
  */
 #include <sys/cdefs.h>
-__RCSID("$NetBSD: t_ceil.c,v 1.2 2011/03/25 10:00:32 jruoho Exp $");
+__RCSID("$NetBSD: t_ceil.c,v 1.3 2011/03/25 10:42:38 jruoho Exp $");
 
 #include <math.h>
 #include <limits.h>
-#include <stdlib.h>
 
 #include <atf-c.h>
 
@@ -49,12 +48,6 @@
        double x, y;
        int i;
 
-       /*
-        * This may fail under QEMU; see PR misc/44767.
-        */
-       if (system("cpuctl identify 0 | grep -q QEMU") == 0)
-               atf_tc_skip("Test not applicable on QEMU");
-
        for (i = 0; i < n; i++) {
 
                x = i + 0.999999999;
diff -r c3c95a2a854b -r 59b21d181084 tests/lib/libm/t_floor.c
--- a/tests/lib/libm/t_floor.c  Fri Mar 25 10:30:35 2011 +0000
+++ b/tests/lib/libm/t_floor.c  Fri Mar 25 10:42:38 2011 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: t_floor.c,v 1.3 2011/03/25 10:00:32 jruoho Exp $ */
+/* $NetBSD: t_floor.c,v 1.4 2011/03/25 10:42:38 jruoho Exp $ */
 
 /*-
  * Copyright (c) 2011 The NetBSD Foundation, Inc.
@@ -29,7 +29,7 @@
  * POSSIBILITY OF SUCH DAMAGE.
  */
 #include <sys/cdefs.h>
-__RCSID("$NetBSD: t_floor.c,v 1.3 2011/03/25 10:00:32 jruoho Exp $");
+__RCSID("$NetBSD: t_floor.c,v 1.4 2011/03/25 10:42:38 jruoho Exp $");
 
 #include <math.h>
 #include <limits.h>
@@ -53,7 +53,7 @@
         * This may fail under QEMU; see PR misc/44767.
         */
        if (system("cpuctl identify 0 | grep -q QEMU") == 0)
-               atf_tc_skip("Test not applicable on QEMU");
+               atf_tc_expect_fail("PR misc/44767");
 
        for (i = 0; i < n; i++) {
 



Home | Main Index | Thread Index | Old Index