Skip to content

Commit 2fe752f

Browse files
committed
Fix #1109, Remove unimplemented test stub prototype
1 parent 3105366 commit 2fe752f

4 files changed

Lines changed: 5 additions & 29 deletions

File tree

src/os/inc/osapi-clock.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ static inline int64 OS_TimeGetTotalMilliseconds(OS_time_t tm)
168168

169169
/*-------------------------------------------------------------------------------------*/
170170
/**
171-
* @brief Get an OS_time_t interval object from a integer number of milliseconds
171+
* @brief Get an OS_time_t interval object from an integer number of milliseconds
172172
*
173173
* This is the inverse operation of OS_TimeGetTotalMilliseconds(), converting the
174174
* total number of milliseconds into an OS_time_t value.
@@ -201,7 +201,7 @@ static inline int64 OS_TimeGetTotalMicroseconds(OS_time_t tm)
201201

202202
/*-------------------------------------------------------------------------------------*/
203203
/**
204-
* @brief Get an OS_time_t interval object from a integer number of microseconds
204+
* @brief Get an OS_time_t interval object from an integer number of microseconds
205205
*
206206
* This is the inverse operation of OS_TimeGetTotalMicroseconds(), converting the
207207
* total number of microseconds into an OS_time_t value.
@@ -238,7 +238,7 @@ static inline int64 OS_TimeGetTotalNanoseconds(OS_time_t tm)
238238

239239
/*-------------------------------------------------------------------------------------*/
240240
/**
241-
* @brief Get an OS_time_t interval object from a integer number of nanoseconds
241+
* @brief Get an OS_time_t interval object from an integer number of nanoseconds
242242
*
243243
* This is the inverse operation of OS_TimeGetTotalNanoseconds(), converting the
244244
* total number of nanoseconds into an OS_time_t value.

src/tests/osal-core-test/osal-core-test.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -552,7 +552,7 @@ void TestGetInfos(void)
552552
OS_bin_sem_prop_t bin_prop;
553553
OS_mut_sem_prop_t mut_prop;
554554

555-
/* first step is to create an object to to get the properties of */
555+
/* first step is to create an object to get the properties of */
556556

557557
status = OS_TaskCreate(&task_0_id, "Task 0", task_generic_no_exit, OSAL_STACKPTR_C(task_0_stack),
558558
sizeof(task_0_stack), OSAL_PRIORITY_C(TASK_0_PRIORITY), 0);

src/unit-test-coverage/shared/src/coveragetest-clock.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ void Test_OS_TimeAccessConversions(void)
160160
/*
161161
* Confirm reciprocity of the Get/From unit conversions.
162162
* Note there is no (easy) way to directly compare a OS_time_t here,
163-
* so this uses both conversions an just confirms the result, subject
163+
* so this uses both conversions and just confirms the result, subject
164164
* to rounding from the conversion. In the default configuration the
165165
* tick units are 100ns and so the numbers here are chosen such that
166166
* the result will not lose precision, and also not overflow a uint32.

ut_assert/inc/utstubs.h

Lines changed: 0 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -458,30 +458,6 @@ size_t UT_Stub_CopyFromLocal(UT_EntryKey_t FuncKey, const void *LocalBuffer, siz
458458
UT_Stub_RegisterContextWithMetaData(FuncKey, #Parameter, UT_STUBCONTEXT_ARG_TYPE_INDIRECT, &Parameter, \
459459
sizeof(Parameter))
460460

461-
/**
462-
* Set a stub return value from the handler function
463-
*
464-
* This sets/copies the specified value to the buffer that will be
465-
* returned from the original stub call back to the caller. This
466-
* provides the actual return value and it will override/replace
467-
* any assumed or default return value.
468-
*
469-
* The passed-in buffer should be a pointer to the same data type
470-
* that the stub returns. Any type mismatch is considered an error.
471-
*
472-
* The handler function must call this routine for any stub which
473-
* returns a data type other than int32.
474-
*
475-
* @note If there is no handler function or the handler does not call
476-
* this routine to set a return value, the implementation will use the
477-
* "Int32StatusCode" value as a return if the size matches sizeof(int32).
478-
*
479-
* \param FuncKey The stub function associated with the buffer
480-
* \param BufferPtr Pointer to the local return value
481-
* \param BufferSize Size of the local return value
482-
*/
483-
void UT_Stub_SetReturnValue(UT_EntryKey_t FuncKey, const void *BufferPtr, size_t BufferSize);
484-
485461
/**
486462
* Creates a buffer to hold the return value for the stub
487463
*

0 commit comments

Comments
 (0)