diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2020-04-13 19:29:35 +0200 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2020-04-14 07:19:53 +0200 |
commit | fb07f730c1dd400b6d2f79a5393ff5e3cdded73e (patch) | |
tree | 5dab6cb6049e3ec82afeb109345af064ed394344 /testsuites/sptests/spclock_todhook01/init.c | |
parent | d35722e66c68ee2bbdbe14d8d30fa8f3a02da993 (diff) |
score: Return status in _TOD_Set()
Update #3949.
Diffstat (limited to '')
-rw-r--r-- | testsuites/sptests/spclock_todhook01/init.c | 14 |
1 files changed, 7 insertions, 7 deletions
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; |