Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/tests/lib/librt use check_eq instead of require.
details: https://anonhg.NetBSD.org/src/rev/8dc29e91ee3c
branches: trunk
changeset: 778408:8dc29e91ee3c
user: christos <christos%NetBSD.org@localhost>
date: Sun Mar 25 04:11:42 2012 +0000
description:
use check_eq instead of require.
diffstat:
tests/lib/librt/t_sched.c | 10 +++++-----
1 files changed, 5 insertions(+), 5 deletions(-)
diffs (45 lines):
diff -r 4cd0e2efe672 -r 8dc29e91ee3c tests/lib/librt/t_sched.c
--- a/tests/lib/librt/t_sched.c Sun Mar 25 03:51:33 2012 +0000
+++ b/tests/lib/librt/t_sched.c Sun Mar 25 04:11:42 2012 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: t_sched.c,v 1.4 2012/03/18 07:14:08 jruoho Exp $ */
+/* $NetBSD: t_sched.c,v 1.5 2012/03/25 04:11:42 christos Exp $ */
/*-
* Copyright (c) 2011 The NetBSD Foundation, Inc.
@@ -29,7 +29,7 @@
* POSSIBILITY OF SUCH DAMAGE.
*/
#include <sys/cdefs.h>
-__RCSID("$NetBSD: t_sched.c,v 1.4 2012/03/18 07:14:08 jruoho Exp $");
+__RCSID("$NetBSD: t_sched.c,v 1.5 2012/03/25 04:11:42 christos Exp $");
#include <sched.h>
#include <limits.h>
@@ -57,7 +57,7 @@
ATF_REQUIRE(sched_getparam(0, &s1) == 0);
ATF_REQUIRE(sched_getparam(p, &s2) == 0);
- ATF_REQUIRE(s1.sched_priority == s2.sched_priority);
+ ATF_CHECK_EQ(s1.sched_priority, s2.sched_priority);
/*
* The behavior is undefined but should error
@@ -114,7 +114,7 @@
/*
* Test that the policy was changed.
*/
- ATF_REQUIRE(sched_getscheduler(0) == pol);
+ ATF_CHECK_EQ(sched_getscheduler(0), pol);
/*
* And that sched_getparam(3) returns the new priority.
@@ -122,7 +122,7 @@
sched.sched_priority = -1;
ATF_REQUIRE(sched_getparam(0, &sched) == 0);
- ATF_REQUIRE(sched.sched_priority == pri);
+ ATF_CHECK_EQ(sched.sched_priority, pri);
}
ATF_TC(sched_setscheduler_1);
Home |
Main Index |
Thread Index |
Old Index