Skip to content

Commit

Permalink
Fix #752, Utilize UTASSERT_CASETYPE_NA to report OS_ERR_NOT_IMPLEMENTED
Browse files Browse the repository at this point in the history
  • Loading branch information
zanzaben committed Feb 16, 2021
1 parent ce4cee9 commit c7f6093
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions src/tests/network-api-test/network-api-test.c
Original file line number Diff line number Diff line change
Expand Up @@ -378,7 +378,7 @@ void TestDatagramNetworkApi(void)
}
else
{
UtPrintf("Test skipped due to network not being implemeted");
UtAssert_Type(NA, false, "Network API not implemented");
}

} /* end TestDatagramNetworkApi */
Expand Down Expand Up @@ -466,7 +466,7 @@ void TestStreamNetworkApi(void)
actual = OS_SocketOpen(&s_socket_id, OS_SocketDomain_INET, OS_SocketType_STREAM);
if (actual == OS_ERR_NOT_IMPLEMENTED)
{
UtPrintf("Test skipped due to network not being implemeted");
UtAssert_Type(NA, false, "Network API not implemented");
}
else
{
Expand Down
8 changes: 4 additions & 4 deletions src/tests/select-test/select-test.c
Original file line number Diff line number Diff line change
Expand Up @@ -338,7 +338,7 @@ void TestSelectSingleRead(void)
}
else
{
UtPrintf("Test skipped due to network not being implemeted");
UtAssert_Type(NA, false, "Network API not implemented");
}
}

Expand Down Expand Up @@ -396,7 +396,7 @@ void TestSelectMultipleRead(void)
}
else
{
UtPrintf("Test skipped due to network not being implemeted");
UtAssert_Type(NA, false, "Network API not implemented");
}
}

Expand Down Expand Up @@ -467,7 +467,7 @@ void TestSelectSingleWrite(void)
}
else
{
UtPrintf("Test skipped due to network not being implemeted");
UtAssert_Type(NA, false, "Network API not implemented");
}
}

Expand Down Expand Up @@ -548,7 +548,7 @@ void TestSelectMultipleWrite(void)
}
else
{
UtPrintf("Test skipped due to network not being implemeted");
UtAssert_Type(NA, false, "Network API not implemented");
}
}

Expand Down

0 comments on commit c7f6093

Please sign in to comment.