Skip to content

Commit

Permalink
Partial nasa#1052, Network test cases
Browse files Browse the repository at this point in the history
  • Loading branch information
jphickey committed Jun 17, 2021
1 parent a440d37 commit ae50ba7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/os/inc/osapi-network.h
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,8 @@ int32 OS_NetworkGetID(void);
* If configured in the underlying network stack,
* this function retrieves the local hostname of the system.
*
* @param[out] host_name Buffer to hold name information
* @param[in] name_len Maximum length of host name buffer
* @param[out] host_name Buffer to hold name information @nonnull
* @param[in] name_len Maximum length of host name buffer @nonzero
*
* @return Execution status, see @ref OSReturnCodes
* @retval #OS_SUCCESS @copybrief OS_SUCCESS
Expand Down
2 changes: 1 addition & 1 deletion src/unit-tests/osnetwork-test/ut_osnetwork_misc_test.c
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ void UT_os_networkgethostname_test()
/*-----------------------------------------------------*/
/* #1 Null-pointer-arg */

UT_RETVAL(OS_NetworkGetHostName(NULL, 0), OS_INVALID_POINTER);
UT_RETVAL(OS_NetworkGetHostName(NULL, sizeof(buffer)), OS_INVALID_POINTER);

/*-----------------------------------------------------*/
/* #2 Zero-name-length-arg */
Expand Down

0 comments on commit ae50ba7

Please sign in to comment.