From 52485d00ca190933c7d377f9dce4340540693c31 Mon Sep 17 00:00:00 2001 From: christos Date: Sun, 25 Mar 2012 04:11:42 +0000 Subject: [PATCH] use check_eq instead of require. --- tests/lib/librt/t_sched.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/tests/lib/librt/t_sched.c b/tests/lib/librt/t_sched.c index 707a75dbc34d..879604305e4f 100644 --- a/tests/lib/librt/t_sched.c +++ b/tests/lib/librt/t_sched.c @@ -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 -__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 #include @@ -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);