Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix #1009, add missing clock retcode tests #1029

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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