Module Name: src
Committed By: christos
Date: Sun Mar 25 04:11:42 UTC 2012
Modified Files:
src/tests/lib/librt: t_sched.c
Log Message:
use check_eq instead of require.
To generate a diff of this commit:
cvs rdiff -u -r1.4 -r1.5 src/tests/lib/librt/t_sched.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/lib/librt/t_sched.c
diff -u src/tests/lib/librt/t_sched.c:1.4 src/tests/lib/librt/t_sched.c:1.5
--- src/tests/lib/librt/t_sched.c:1.4 Sun Mar 18 03:14:08 2012
+++ src/tests/lib/librt/t_sched.c Sun Mar 25 00:11:42 2012
@@ -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_TC_BODY(sched_getparam, tc)
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 @@ sched_priority_set(int pri, int pol)
/*
* 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_priority_set(int pri, int pol)
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);