Module Name: src
Committed By: jruoho
Date: Sat Jun 4 15:51:45 UTC 2011
Modified Files:
src/tests/syscall: t_getrusage.c
Log Message:
Until PR bin/44837 is fixed, use atf_tc_fail("anticipated error did not
occur") even if the bug did not trigger.
To generate a diff of this commit:
cvs rdiff -u -r1.6 -r1.7 src/tests/syscall/t_getrusage.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/syscall/t_getrusage.c
diff -u src/tests/syscall/t_getrusage.c:1.6 src/tests/syscall/t_getrusage.c:1.7
--- src/tests/syscall/t_getrusage.c:1.6 Fri Apr 8 10:36:09 2011
+++ src/tests/syscall/t_getrusage.c Sat Jun 4 15:51:45 2011
@@ -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)