Skip to content

Commit

Permalink
Fix nasa#752, Utilize UTASSERT_CASETYPE_NA to report OS_ERR_NOT_IMPLE…
Browse files Browse the repository at this point in the history
…MENTED
  • Loading branch information
zanzaben committed Feb 16, 2021
1 parent ff4f523 commit 9004e4c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions src/tests/file-api-test/file-api-test.c
Original file line number Diff line number Diff line change
Expand Up @@ -270,7 +270,7 @@ void TestChmod(void)
}
else
{
UtPrintf("OS_chmod not implemented for write only\n");
UtAssert_Type(NA, false, "OS_chmod not implemented for write only");
}

/*Testing Read Only */
Expand All @@ -285,7 +285,7 @@ void TestChmod(void)
}
else
{
UtPrintf("OS_chmod not implemented for read only\n");
UtAssert_Type(NA, false, "OS_chmod not implemented for read only");
}

/*Testing Read Write */
Expand All @@ -300,7 +300,7 @@ void TestChmod(void)
}
else
{
UtPrintf("OS_chmod not implemented for read write\n");
UtAssert_Type(NA, false, "OS_chmod not implemented for read write");
}

/*Removing the file */
Expand Down
6 changes: 3 additions & 3 deletions src/tests/network-api-test/network-api-test.c
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ void TestDatagramNetworkApi_Setup(void)
actual = OS_SocketOpen(&socket_id, OS_SocketDomain_INET6, OS_SocketType_DATAGRAM);
if (actual == OS_ERR_NOT_IMPLEMENTED)
{
UtPrintf("INET6 not supported\n");
UtAssert_Type(NA, false, "INET6 not supported");
}
else
{
Expand All @@ -135,7 +135,7 @@ void TestDatagramNetworkApi_Setup(void)
actual = OS_SocketAddrInit(&addr, OS_SocketDomain_INET6);
if (actual == OS_ERR_NOT_IMPLEMENTED)
{
UtPrintf("INET6 not supported\n");
UtAssert_Type(NA, false, "INET6 not supported");
}
else
{
Expand All @@ -145,7 +145,7 @@ void TestDatagramNetworkApi_Setup(void)
actual = OS_SocketAddrInit(NULL, OS_SocketDomain_INET6);
if (actual == OS_ERR_NOT_IMPLEMENTED)
{
UtPrintf("INET6 not supported\n");
UtAssert_Type(NA, false, "INET6 not supported");
}
else
{
Expand Down

0 comments on commit 9004e4c

Please sign in to comment.