Skip to content

Commit

Permalink
Fix #1109, Remove unimplemented test stub prototype
Browse files Browse the repository at this point in the history
  • Loading branch information
thnkslprpt committed Feb 4, 2023
1 parent 3105366 commit d62ad84
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 25 deletions.
2 changes: 1 addition & 1 deletion src/tests/osal-core-test/osal-core-test.c
Original file line number Diff line number Diff line change
Expand Up @@ -552,7 +552,7 @@ void TestGetInfos(void)
OS_bin_sem_prop_t bin_prop;
OS_mut_sem_prop_t mut_prop;

/* first step is to create an object to to get the properties of */
/* first step is to create an object to get the properties of */

status = OS_TaskCreate(&task_0_id, "Task 0", task_generic_no_exit, OSAL_STACKPTR_C(task_0_stack),
sizeof(task_0_stack), OSAL_PRIORITY_C(TASK_0_PRIORITY), 0);
Expand Down
24 changes: 0 additions & 24 deletions ut_assert/inc/utstubs.h
Original file line number Diff line number Diff line change
Expand Up @@ -458,30 +458,6 @@ size_t UT_Stub_CopyFromLocal(UT_EntryKey_t FuncKey, const void *LocalBuffer, siz
UT_Stub_RegisterContextWithMetaData(FuncKey, #Parameter, UT_STUBCONTEXT_ARG_TYPE_INDIRECT, &Parameter, \
sizeof(Parameter))

/**
* Set a stub return value from the handler function
*
* This sets/copies the specified value to the buffer that will be
* returned from the original stub call back to the caller. This
* provides the actual return value and it will override/replace
* any assumed or default return value.
*
* The passed-in buffer should be a pointer to the same data type
* that the stub returns. Any type mismatch is considered an error.
*
* The handler function must call this routine for any stub which
* returns a data type other than int32.
*
* @note If there is no handler function or the handler does not call
* this routine to set a return value, the implementation will use the
* "Int32StatusCode" value as a return if the size matches sizeof(int32).
*
* \param FuncKey The stub function associated with the buffer
* \param BufferPtr Pointer to the local return value
* \param BufferSize Size of the local return value
*/
void UT_Stub_SetReturnValue(UT_EntryKey_t FuncKey, const void *BufferPtr, size_t BufferSize);

/**
* Creates a buffer to hold the return value for the stub
*
Expand Down

0 comments on commit d62ad84

Please sign in to comment.