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 #753, Remove UT_CheckForOpenSockets #754

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
23 changes: 0 additions & 23 deletions src/ut-stubs/utstub-helpers.c
Original file line number Diff line number Diff line change
Expand Up @@ -184,26 +184,3 @@ void UT_ObjIdDecompose(osal_id_t id, uint32 *indx, UT_ObjType_t *objtype)
*indx = idv & 0xFFFFUL;
*objtype = (idv >> 16) ^ 0x4000UL;
}

/*
** Report and close any sockets found open
** Moved here temporarily to ensure full compatibility with CFE implementation
**
** NOTE - this historically only checked for queues that were created but not
** cleaned up. Although the current impl could check for anything, only queues
** are done for now.
*/
void UT_CheckForOpenSockets(void)
{
UT_ObjTypeState_t *StatePtr;
uint32 i;

StatePtr = &UT_ObjState[UT_OBJTYPE_QUEUE];
for (i = 0; i <= StatePtr->LastIssueNumber; ++i)
{
if ((StatePtr->ValidBits[i >> 3] & (1 << (i & 0x07))) != 0)
{
UtAssert_Failed("UT_Queue %d left open.\n", (int)i);
}
}
}
6 changes: 0 additions & 6 deletions src/ut-stubs/utstub-helpers.h
Original file line number Diff line number Diff line change
Expand Up @@ -107,12 +107,6 @@ osal_id_t UT_AllocStubObjId(UT_ObjType_t ObjType);
*/
void UT_DeleteStubObjId(UT_ObjType_t ObjType, osal_id_t ObjId);

/*
* Helper function - Report any queue objects found open
* (for compatibility with CFE tests, only checks queues)
*/
void UT_CheckForOpenSockets(void);

/*
* Helper function - Clear all OSAL UT stub objects
* Resets the stub object table back to its initial/empty state
Expand Down