Skip to content

Commit

Permalink
Merge pull request #1029 from jphickey/fix-1009-clock-retcodes
Browse files Browse the repository at this point in the history
Fix #1009, add missing clock retcode tests
  • Loading branch information
astrogeco authored Jun 1, 2021
2 parents d5c8fc4 + 78e87f7 commit b6511e9
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
6 changes: 4 additions & 2 deletions src/os/inc/osapi-clock.h
Original file line number Diff line number Diff line change
Expand Up @@ -80,9 +80,10 @@ enum
*
* @note Mission time management typically uses the cFE Time Service
*
* @param[out] time_struct An OS_time_t that will be set to the current time
* @param[out] time_struct An OS_time_t that will be set to the current time @nonnull
*
* @return Get local time status, see @ref OSReturnCodes
* @retval #OS_SUCCESS @copybrief OS_SUCCESS
* @retval #OS_INVALID_POINTER if time_struct is null
*/
int32 OS_GetLocalTime(OS_time_t *time_struct);
Expand All @@ -95,9 +96,10 @@ int32 OS_GetLocalTime(OS_time_t *time_struct);
*
* @note Mission time management typically uses the cFE Time Services
*
* @param[in] time_struct An OS_time_t containing the current time
* @param[in] time_struct An OS_time_t containing the current time @nonnull
*
* @return Set local time status, see @ref OSReturnCodes
* @retval #OS_SUCCESS @copybrief OS_SUCCESS
* @retval #OS_INVALID_POINTER if time_struct is null
*/
int32 OS_SetLocalTime(const OS_time_t *time_struct);
Expand Down
2 changes: 1 addition & 1 deletion src/unit-tests/oscore-test/ut_oscore_misc_test.c
Original file line number Diff line number Diff line change
Expand Up @@ -295,7 +295,7 @@ void UT_os_setlocaltime_test()
/*-----------------------------------------------------*/
/* #1 Null-pointer-arg */

UT_RETVAL(OS_GetLocalTime(NULL), OS_INVALID_POINTER);
UT_RETVAL(OS_SetLocalTime(NULL), OS_INVALID_POINTER);

/*-----------------------------------------------------*/
/* #3 Nominal */
Expand Down

0 comments on commit b6511e9

Please sign in to comment.