Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/tests/lib/libc/gen In nice_err testcase, use ATF_REQUIRE_ERRNO.
details: https://anonhg.NetBSD.org/src/rev/1b7c49e4d0b9
branches: trunk
changeset: 764488:1b7c49e4d0b9
user: njoly <njoly%NetBSD.org@localhost>
date: Mon Apr 25 20:55:06 2011 +0000
description:
In nice_err testcase, use ATF_REQUIRE_ERRNO.
diffstat:
tests/lib/libc/gen/t_nice.c | 9 +++------
1 files changed, 3 insertions(+), 6 deletions(-)
diffs (30 lines):
diff -r 24319c18138b -r 1b7c49e4d0b9 tests/lib/libc/gen/t_nice.c
--- a/tests/lib/libc/gen/t_nice.c Mon Apr 25 20:51:14 2011 +0000
+++ b/tests/lib/libc/gen/t_nice.c Mon Apr 25 20:55:06 2011 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: t_nice.c,v 1.5 2011/04/17 06:18:23 jruoho Exp $ */
+/* $NetBSD: t_nice.c,v 1.6 2011/04/25 20:55:06 njoly Exp $ */
/*-
* Copyright (c) 2011 The NetBSD Foundation, Inc.
@@ -29,7 +29,7 @@
* POSSIBILITY OF SUCH DAMAGE.
*/
#include <sys/cdefs.h>
-__RCSID("$NetBSD: t_nice.c,v 1.5 2011/04/17 06:18:23 jruoho Exp $");
+__RCSID("$NetBSD: t_nice.c,v 1.6 2011/04/25 20:55:06 njoly Exp $");
#include <sys/resource.h>
#include <sys/wait.h>
@@ -83,10 +83,7 @@
errno = 0;
- ATF_REQUIRE(nice(i) == -1);
-
- if (errno != EPERM)
- atf_tc_fail("wrong errno");
+ ATF_REQUIRE_ERRNO(EPERM, nice(i) == -1);
}
}
Home |
Main Index |
Thread Index |
Old Index