Source-Changes-HG archive

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

[src/trunk]: src/tests/syscall Until PR bin/44837 is fixed, use atf_tc_fail("...



details:   https://anonhg.NetBSD.org/src/rev/448c5acdedca
branches:  trunk
changeset: 765746:448c5acdedca
user:      jruoho <jruoho%NetBSD.org@localhost>
date:      Sat Jun 04 15:51:45 2011 +0000

description:
Until PR bin/44837 is fixed, use atf_tc_fail("anticipated error did not
occur") even if the bug did not trigger.

diffstat:

 tests/syscall/t_getrusage.c |  8 ++++++--
 1 files changed, 6 insertions(+), 2 deletions(-)

diffs (36 lines):

diff -r 8cc1c8bfd3b0 -r 448c5acdedca tests/syscall/t_getrusage.c
--- a/tests/syscall/t_getrusage.c       Sat Jun 04 15:45:55 2011 +0000
+++ b/tests/syscall/t_getrusage.c       Sat Jun 04 15:51:45 2011 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: t_getrusage.c,v 1.6 2011/04/08 10:36:09 jruoho Exp $ */
+/* $NetBSD: t_getrusage.c,v 1.7 2011/06/04 15:51:45 jruoho Exp $ */
 
 /*-
  * Copyright (c) 2011 The NetBSD Foundation, Inc.
@@ -29,7 +29,7 @@
  * POSSIBILITY OF SUCH DAMAGE.
  */
 #include <sys/cdefs.h>
-__RCSID("$NetBSD: t_getrusage.c,v 1.6 2011/04/08 10:36:09 jruoho Exp $");
+__RCSID("$NetBSD: t_getrusage.c,v 1.7 2011/06/04 15:51:45 jruoho Exp $");
 
 #include <sys/resource.h>
 #include <sys/time.h>
@@ -142,6 +142,8 @@
                if (timercmp(&ru2.ru_utime, &ru1.ru_utime, <) != 0)
                        atf_tc_fail("user time went backwards");
        }
+
+       atf_tc_fail("anticipated error did not occur");
 }
 
 ATF_TC(getrusage_utime_zero);
@@ -174,6 +176,8 @@
                if (ru.ru_utime.tv_sec == 0 && ru.ru_utime.tv_usec == 0)
                        atf_tc_fail("zero user time from getrusage(2)");
        }
+
+       atf_tc_fail("anticipated error did not occur");
 }
 
 ATF_TP_ADD_TCS(tp)



Home | Main Index | Thread Index | Old Index