From fb07f730c1dd400b6d2f79a5393ff5e3cdded73e Mon Sep 17 00:00:00 2001 From: Sebastian Huber Date: Mon, 13 Apr 2020 19:29:35 +0200 Subject: score: Return status in _TOD_Set() Update #3949. --- testsuites/sptests/spclock_todhook01/init.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'testsuites') diff --git a/testsuites/sptests/spclock_todhook01/init.c b/testsuites/sptests/spclock_todhook01/init.c index 26f0ff9b48..78c7bd552a 100644 --- a/testsuites/sptests/spclock_todhook01/init.c +++ b/testsuites/sptests/spclock_todhook01/init.c @@ -78,7 +78,7 @@ static struct timespec tod_set; static bool hook1_executed; static bool hook2_executed; -static bool tod_hook1( +static Status_Control tod_hook1( TOD_Action action, const struct timespec *tod ) @@ -90,10 +90,10 @@ static bool tod_hook1( hook1_executed = true; - return true; + return STATUS_SUCCESSFUL; } -static bool tod_hook2( +static Status_Control tod_hook2( TOD_Action action, const struct timespec *tod ) @@ -105,7 +105,7 @@ static bool tod_hook2( hook2_executed = true; - return true; + return STATUS_SUCCESSFUL; } /* @@ -219,7 +219,7 @@ static void do_positive_case(int i) static bool hook_error_executed; -static bool tod_hook_error( +static Status_Control tod_hook_error( TOD_Action action, const struct timespec *tod ) @@ -231,7 +231,7 @@ static bool tod_hook_error( hook_error_executed = true; - return false; + return STATUS_NOT_OWNER; } /* * Execute one negative test case. @@ -274,7 +274,7 @@ static void do_negative_case(bool use_posix) 0 ); status = rtems_clock_set( &time ); - rtems_test_assert( status == RTEMS_IO_ERROR ); + rtems_test_assert( status == RTEMS_NOT_OWNER_OF_RESOURCE ); } else { int rc; -- cgit v1.2.3