From 7c3c11460282e56bd6ca66287a8636114ae9163e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Frank=20K=C3=BChndel?= Date: Mon, 17 May 2021 07:21:43 +0200 Subject: testsuites/validation/tx-support.h --- testsuites/validation/tx-support.h | 9 +++++++++ testsuites/validation/tx-timer-server.c | 6 ++++++ 2 files changed, 15 insertions(+) diff --git a/testsuites/validation/tx-support.h b/testsuites/validation/tx-support.h index 5d4824cef0..9e1ed9d54b 100644 --- a/testsuites/validation/tx-support.h +++ b/testsuites/validation/tx-support.h @@ -353,6 +353,15 @@ typedef enum { */ Timer_States GetTimerState( rtems_id id ); +/** + * @brief Mark the realtime clock as never set. + * + * This function manipulates RTEMS internal data structures to undo the + * effect of rtems_clock_set(). If the clock is not set, the function has no + * effect. + */ +void UnsetClock( void ); + /** @} */ #ifdef __cplusplus diff --git a/testsuites/validation/tx-timer-server.c b/testsuites/validation/tx-timer-server.c index 26a0902e0f..80ba853fb1 100644 --- a/testsuites/validation/tx-timer-server.c +++ b/testsuites/validation/tx-timer-server.c @@ -41,6 +41,7 @@ #include #include +#include rtems_id GetTimerServerTaskId( void ) { @@ -142,3 +143,8 @@ Timer_States GetTimerState( rtems_id id ) return result; } + +void UnsetClock( void ) +{ + _TOD.is_set = false; +} -- cgit v1.2.3