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

Integration Candidate 20191115 #292

Merged
merged 5 commits into from
Nov 30, 2019
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
10 changes: 7 additions & 3 deletions src/os/inc/osapi-os-core.h
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,9 @@ uint32 OS_IdentifyObject (uint32 object_id);
* @note This does NOT verify the validity of the ID, that is left to the caller.
* This is only the conversion logic.
*
* @param[in] object_id The object ID to operate on
* @param[in] object_id The object ID to operate on
*
* @param[out] *ArrayIndex The Index to return
*
* @returns OS_SUCCESS on success, or appropriate error code
*/
Expand Down Expand Up @@ -310,7 +312,7 @@ int32 OS_TaskInstallDeleteHandler(osal_task_entry function_pointer);
/**
* @brief Delay a task for specified amount of milliseconds
*
* @param[in] milliseconds Amount of time to delay
* @param[in] millisecond Amount of time to delay
*
* @returns OS_SUCCESS on success, or appropriate error code
* OS_ERROR if sleep fails or millisecond = 0
Expand All @@ -322,7 +324,9 @@ int32 OS_TaskDelay (uint32 millisecond);
/**
* @brief Sets the given task to a new priority
*
* @param[in] task_id The object ID to operate on
* @param[in] task_id The object ID to operate on
*
* @param[in] new_priority Set the new priority
*
* @returns OS_SUCCESS on success, or appropriate error code
* OS_ERR_INVALID_ID if the ID passed to it is invalid
Expand Down
6 changes: 5 additions & 1 deletion src/os/inc/osapi-os-filesys.h
Original file line number Diff line number Diff line change
Expand Up @@ -230,8 +230,12 @@ int32 OS_creat (const char *path, int32 access);
* Opens a file. access parameters are OS_READ_ONLY, OS_WRITE_ONLY, or
* OS_READ_WRITE
*
* @param[in] path File name to create
* @param[in] path File name to create
* @param[in] access Intended access mode - OS_READ_ONLY, OS_WRITE_ONLY or OS_READ_WRITE
* @param[in] mode The file permissions. This parameter is passed through to the
* native open call, but will be ignored. The file mode (or permissions)
* are ignored by the POSIX open call when the O_CREAT access flag is not passed in.
*
*
* @note Valid handle IDs are never negative. Failure of this
* call can be checked by testing if the result is less than 0.
Expand Down
2 changes: 1 addition & 1 deletion src/os/posix/osapi.c
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
* Added SEM_VALUE_MAX Define
*/
#ifndef SEM_VALUE_MAX
#define SEM_VALUE_MAX (1 << 31)
#define SEM_VALUE_MAX (UINT32_MAX/2)
#endif

/*
Expand Down
2 changes: 1 addition & 1 deletion src/os/shared/osapi-time.c
Original file line number Diff line number Diff line change
Expand Up @@ -313,7 +313,7 @@ int32 OS_TimerSet(uint32 timer_id, uint32 start_time, uint32 interval_time)

dedicated_timebase_id = 0;

if (start_time >= INT_MAX || interval_time >= INT_MAX)
if (start_time >= (UINT32_MAX/2) || interval_time >= (UINT32_MAX/2))
{
return OS_TIMER_ERR_INVALID_ARGS;
}
Expand Down
2 changes: 1 addition & 1 deletion src/unit-test-coverage/shared/src/coveragetest-time.c
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ void Test_OS_TimerSet(void)
memset(OS_timecb_table, 0, sizeof(OS_timecb_table));

expected = OS_TIMER_ERR_INVALID_ARGS;
actual = OS_TimerSet(2, 1 << 31, 1 << 31);
actual = OS_TimerSet(2, UINT32_MAX, UINT32_MAX);
UtAssert_True(actual == expected, "OS_TimerSet() (%ld) == OS_TIMER_ERR_INVALID_ARGS", (long)actual);

UT_SetForceFail(UT_KEY(OS_TaskGetId_Impl), 1 | (OS_OBJECT_TYPE_OS_TIMEBASE << OS_OBJECT_TYPE_SHIFT));
Expand Down
2 changes: 1 addition & 1 deletion src/unit-test-coverage/shared/src/coveragetest-timebase.c
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ void Test_OS_TimeBaseSet(void)

/* test error paths: overflow on input */
expected = OS_TIMER_ERR_INVALID_ARGS;
actual = OS_TimeBaseSet(1, 1 << 31, 1 << 31);
actual = OS_TimeBaseSet(1, UINT32_MAX, UINT32_MAX);
UtAssert_True(actual == expected, "OS_TimeBaseSet() (%ld) == OS_TIMER_ERR_INVALID_ARGS", (long)actual);

/* test error paths */
Expand Down
4 changes: 2 additions & 2 deletions src/unit-test-coverage/ut-stubs/src/libc-stdio-stubs.c
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ int OCS_rename (const char * old, const char * nw)
int OCS_snprintf (char * s, size_t maxlen, const char * format, ...)
{
int32 Status;
int actual;
int actual = 0;
va_list ap;

Status = UT_DEFAULT_IMPL(OCS_snprintf);
Expand All @@ -148,7 +148,7 @@ int OCS_snprintf (char * s, size_t maxlen, const char * format, ...)
int OCS_vsnprintf (char * s, size_t maxlen, const char * format, OCS_va_list arg)
{
int32 Status;
int actual;
int actual = 0;

Status = UT_DEFAULT_IMPL(OCS_vsnprintf);

Expand Down
1 change: 1 addition & 0 deletions src/unit-tests/oscore-test/ut_oscore_binsem_test.c
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,7 @@ void UT_os_bin_sem_create_test()

res = OS_BinSemCreate(NULL, "BinSem1", 1, 0);
if (res == OS_INVALID_POINTER)
/* cppcheck-suppress syntaxError */
UT_OS_SET_TEST_RESULT_MACRO(apiInfo, idx, testDesc, UT_OS_PASSED)
else
UT_OS_SET_TEST_RESULT_MACRO(apiInfo, idx, testDesc, UT_OS_FAILED)
Expand Down
1 change: 1 addition & 0 deletions src/unit-tests/oscore-test/ut_oscore_countsem_test.c
Original file line number Diff line number Diff line change
Expand Up @@ -163,6 +163,7 @@ void UT_os_count_sem_create_test()

res = OS_CountSemCreate(NULL, "CountSem1", 1, 0);
if (res == OS_INVALID_POINTER)
/* cppcheck-suppress syntaxError */
UT_OS_SET_TEST_RESULT_MACRO(apiInfo, idx, testDesc, UT_OS_PASSED)
else
UT_OS_SET_TEST_RESULT_MACRO(apiInfo, idx, testDesc, UT_OS_FAILED)
Expand Down
1 change: 1 addition & 0 deletions src/unit-tests/oscore-test/ut_oscore_exception_test.c
Original file line number Diff line number Diff line change
Expand Up @@ -170,6 +170,7 @@ void UT_os_fpuexc_setmask_test()
{
res = OS_FPUExcGetMask(&curMask);
if ((res == OS_SUCCESS) && (curMask == newMask))
/* cppcheck-suppress syntaxError */
UT_OS_SET_TEST_RESULT_MACRO(apiInfo, idx, testDesc, UT_OS_PASSED)
else
UT_OS_SET_TEST_RESULT_MACRO(apiInfo, idx, testDesc, UT_OS_FAILED)
Expand Down
1 change: 1 addition & 0 deletions src/unit-tests/oscore-test/ut_oscore_interrupt_test.c
Original file line number Diff line number Diff line change
Expand Up @@ -190,6 +190,7 @@ void UT_os_int_attachhandler_test()

res = OS_IntAttachHandler(1, NULL, 0);
if (res == OS_INVALID_POINTER)
/* cppcheck-suppress syntaxError */
UT_OS_SET_TEST_RESULT_MACRO(apiInfo, idx, testDesc, UT_OS_PASSED)
else
UT_OS_SET_TEST_RESULT_MACRO(apiInfo, idx, testDesc, UT_OS_FAILED)
Expand Down
1 change: 1 addition & 0 deletions src/unit-tests/oscore-test/ut_oscore_misc_test.c
Original file line number Diff line number Diff line change
Expand Up @@ -170,6 +170,7 @@ void UT_os_apiinit_test()
(OS_BinSemCreate(&semIds[0], "BinSem 1", semInitValue, semOptions) != OS_SUCCESS) &&
(OS_CountSemCreate(&semIds[1], "CountSem 1", semInitValue, semOptions) != OS_SUCCESS) &&
(OS_MutSemCreate(&semIds[2], "MutexSem 1", semOptions) != OS_SUCCESS))
/* cppcheck-suppress syntaxError */
UT_OS_SET_TEST_RESULT_MACRO(apiInfo, idx, testDesc, UT_OS_PASSED)
else
UT_OS_SET_TEST_RESULT_MACRO(apiInfo, idx, testDesc, UT_OS_FAILED)
Expand Down
1 change: 1 addition & 0 deletions src/unit-tests/oscore-test/ut_oscore_mutex_test.c
Original file line number Diff line number Diff line change
Expand Up @@ -163,6 +163,7 @@ void UT_os_mut_sem_create_test()

res = OS_MutSemCreate(NULL, "MutSem1", 0);
if (res == OS_INVALID_POINTER)
/* cppcheck-suppress syntaxError */
UT_OS_SET_TEST_RESULT_MACRO(apiInfo, idx, testDesc, UT_OS_PASSED)
else
UT_OS_SET_TEST_RESULT_MACRO(apiInfo, idx, testDesc, UT_OS_FAILED)
Expand Down
1 change: 1 addition & 0 deletions src/unit-tests/oscore-test/ut_oscore_queue_test.c
Original file line number Diff line number Diff line change
Expand Up @@ -166,6 +166,7 @@ void UT_os_queue_create_test()

res = OS_QueueCreate(NULL, "Queue1", 10, 4, 0);
if (res == OS_INVALID_POINTER)
/* cppcheck-suppress syntaxError */
UT_OS_SET_TEST_RESULT_MACRO(apiInfo, idx, testDesc, UT_OS_PASSED)
else
UT_OS_SET_TEST_RESULT_MACRO(apiInfo, idx, testDesc, UT_OS_FAILED)
Expand Down
1 change: 1 addition & 0 deletions src/unit-tests/oscore-test/ut_oscore_task_test.c
Original file line number Diff line number Diff line change
Expand Up @@ -205,6 +205,7 @@ void UT_os_task_create_test()
res = OS_TaskCreate(NULL, g_task_names[1], generic_test_task, g_task_stacks[1],
UT_TASK_STACK_SIZE, UT_TASK_PRIORITY, 0);
if (res == OS_INVALID_POINTER)
/* cppcheck-suppress syntaxError */
UT_OS_SET_TEST_RESULT_MACRO(apiInfo, idx, testDesc, UT_OS_PASSED)
else
UT_OS_SET_TEST_RESULT_MACRO(apiInfo, idx, testDesc, UT_OS_FAILED)
Expand Down
1 change: 1 addition & 0 deletions src/unit-tests/osfile-test/ut_osfile_dirio_test.c
Original file line number Diff line number Diff line change
Expand Up @@ -205,6 +205,7 @@ void UT_os_makedir_test()
testDesc = "#1 Null-pointer-arg";

if (OS_mkdir(NULL, 755) == OS_FS_ERR_INVALID_POINTER)
/* cppcheck-suppress syntaxError */
UT_OS_SET_TEST_RESULT_MACRO(apiInfo, idx, testDesc, UT_OS_PASSED)
else
UT_OS_SET_TEST_RESULT_MACRO(apiInfo, idx, testDesc, UT_OS_FAILED)
Expand Down
1 change: 1 addition & 0 deletions src/unit-tests/osfile-test/ut_osfile_fileio_test.c
Original file line number Diff line number Diff line change
Expand Up @@ -301,6 +301,7 @@ void UT_os_createfile_test()
testDesc = "#1 Null-pointer-arg";

if (OS_creat(NULL, OS_READ_WRITE) == OS_FS_ERR_INVALID_POINTER)
/* cppcheck-suppress syntaxError */
UT_OS_SET_TEST_RESULT_MACRO(apiInfo, idx, testDesc, UT_OS_PASSED)
else
UT_OS_SET_TEST_RESULT_MACRO(apiInfo, idx, testDesc, UT_OS_FAILED)
Expand Down
1 change: 1 addition & 0 deletions src/unit-tests/osfilesys-test/ut_osfilesys_diskio_test.c
Original file line number Diff line number Diff line change
Expand Up @@ -217,6 +217,7 @@ void UT_os_initfs_test()
OS_FS_ERR_INVALID_POINTER) &&
(OS_initfs(g_fsAddrPtr, g_devNames[1], NULL, 0, 0) ==
OS_FS_ERR_INVALID_POINTER))
/* cppcheck-suppress syntaxError */
UT_OS_SET_TEST_RESULT_MACRO(apiInfo, idx, testDesc, UT_OS_PASSED)
else
UT_OS_SET_TEST_RESULT_MACRO(apiInfo, idx, testDesc, UT_OS_FAILED)
Expand Down
1 change: 1 addition & 0 deletions src/unit-tests/osloader-test/ut_osloader_module_test.c
Original file line number Diff line number Diff line change
Expand Up @@ -164,6 +164,7 @@ void UT_os_module_load_test()

res = OS_ModuleLoad(0, "TestModule", UT_OS_GENERIC_MODULE_NAME1);
if (res == OS_INVALID_POINTER)
/* cppcheck-suppress syntaxError */
UT_OS_SET_TEST_RESULT_MACRO(apiInfo, idx, testDesc, UT_OS_PASSED)
else
UT_OS_SET_TEST_RESULT_MACRO(apiInfo, idx, testDesc, UT_OS_FAILED)
Expand Down
1 change: 1 addition & 0 deletions src/unit-tests/osloader-test/ut_osloader_symtable_test.c
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,7 @@ void UT_os_symbol_lookup_test()

res = OS_SymbolLookup(0, "main");
if ( res == OS_INVALID_POINTER )
/* cppcheck-suppress syntaxError */
UT_OS_SET_TEST_RESULT_MACRO(apiInfo, idx, testDesc, UT_OS_PASSED)
else
UT_OS_SET_TEST_RESULT_MACRO(apiInfo, idx, testDesc, UT_OS_FAILED)
Expand Down
1 change: 1 addition & 0 deletions src/unit-tests/osnetwork-test/ut_osnetwork_misc_test.c
Original file line number Diff line number Diff line change
Expand Up @@ -178,6 +178,7 @@ void UT_os_networkgetid_test()
res = OS_NetworkGetID();
#endif
if (res != OS_ERROR)
/* cppcheck-suppress syntaxError */
UT_OS_SET_TEST_RESULT_MACRO(apiInfo, idx, testDesc, UT_OS_PASSED)
else
UT_OS_SET_TEST_RESULT_MACRO(apiInfo, idx, testDesc, UT_OS_FAILED)
Expand Down
4 changes: 2 additions & 2 deletions src/unit-tests/osprintf-test/ut_osprintf_misc.c
Original file line number Diff line number Diff line change
Expand Up @@ -71,14 +71,14 @@ void UT_osprintf_misc(void)

/* Test too many decimals in format width/precision modifier */
init_test();
return_value = sprintf(strg_buf, "Too many decimals %13.5.2f");
return_value = sprintf(strg_buf, "Too many decimals");
UT_Report(return_value < 0, "SPRINTF",
"Invalid format string",
test_num, "04");

/* Test too many decimals in format width/precision modifier, truncated */
init_test();
return_value = snprintf(strg_buf, 23, "Too many decimals %13.5.2f");
return_value = snprintf(strg_buf, 23, "Too many decimals");
UT_Report(return_value < 0, "SNPRINTF",
"Invalid format string",
test_num, "04");
Expand Down
26 changes: 13 additions & 13 deletions src/unit-tests/osprintf-test/ut_osprintf_offset.c
Original file line number Diff line number Diff line change
Expand Up @@ -378,7 +378,6 @@ int32 CalcOffset_CFE_ES_WriteToSysLog(const char *SpecStringPtr, ...)

va_start(Ptr, SpecStringPtr, 0, 0, 0);
OS_vsnprintfDummy(MsgWithoutTime, 1, SpecStringPtr, Ptr);
va_end(Ptr);
CFE_TIME_PrintDummy(TmpString, time);
strcatDummy(TmpString, " ");
strncatDummy(TmpString, MsgWithoutTime, 1);
Expand All @@ -392,6 +391,7 @@ int32 CalcOffset_CFE_ES_WriteToSysLog(const char *SpecStringPtr, ...)

UT_Text("\nCFE_ES_WriteToSysLog Argument Calculation:\n");
UT_CheckArgumentOffset(Ptr, 0);
va_end(Ptr);
return 0;
}

Expand All @@ -409,12 +409,12 @@ int32 CalcOffset_EVS_SendEvent(uint16 EventID,
CFE_SB_InitMsgDummy(&EVS_Packet, 1, sizeof(CFE_EVS_Packet_t), 1);
va_start(Ptr, Spec, 0, 0, 0);
OS_vsnprintfDummy(EVS_Packet.Message, 1, Spec, Ptr);
va_end(Ptr);
CFE_TIME_GetTimeDummy();
EVS_SendPacketDummy(0, Time, &EVS_Packet);

UT_Text("\nEVS_SendEvent Argument Calculation:\n");
UT_CheckArgumentOffset(Ptr, 1);
va_end(Ptr);
return 0;
}

Expand All @@ -435,12 +435,12 @@ int32 CalcOffset_CFE_EVS_SendEvent(uint16 EventID,
CFE_SB_InitMsgDummy(&EVS_Packet, 1, sizeof(CFE_EVS_Packet_t), 1);
va_start(Ptr, Spec, 0, 0, 0);
OS_vsnprintfDummy(EVS_Packet.Message, 1, Spec, Ptr);
va_end(Ptr);
CFE_TIME_GetTimeDummy();
EVS_SendPacketDummy(AppID, Time, &EVS_Packet);

UT_Text("\nCFE_EVS_SendEvent Argument Calculation:\n");
UT_CheckArgumentOffset(Ptr, 2);
va_end(Ptr);
return 0;
}

Expand All @@ -461,12 +461,12 @@ int32 CalcOffset_CFE_EVS_SendEventWithAppID(uint16 EventID,
CFE_SB_InitMsgDummy(&EVS_Packet, 1, sizeof(CFE_EVS_Packet_t), 1);
va_start(Ptr, Spec, 0, 0, 0);
OS_vsnprintfDummy(EVS_Packet.Message, 1, Spec, Ptr);
va_end(Ptr);
CFE_TIME_GetTimeDummy();
EVS_SendPacketDummy(AppID, Time, &EVS_Packet);

UT_Text("\nCFE_EVS_SendEventWithAppID Argument Calculation:\n");
UT_CheckArgumentOffset(Ptr, 3);
va_end(Ptr);
return 0;
}

Expand All @@ -487,11 +487,11 @@ int32 CalcOffset_CFE_EVS_SendTimedEvent(CFE_TIME_SysTime_t Time,
CFE_SB_InitMsgDummy(&EVS_Packet, 0, sizeof(CFE_EVS_Packet_t), 0);
va_start(Ptr, Spec, 0, 0, 0);
OS_vsnprintfDummy(EVS_Packet.Message, 0, Spec, Ptr);
va_end(Ptr);
EVS_SendPacketDummy(AppID, Time, &EVS_Packet);

UT_Text("\nCFE_EVS_SendTimedEvent Argument Calculation:\n");
UT_CheckArgumentOffset(Ptr, 4);
va_end(Ptr);
return 0;
}

Expand All @@ -501,11 +501,11 @@ void CalcOffset_OS_printf(const char *format, ...)
va_list varg;

va_start(varg, format, 0, 0, 0);
OS_vsnprintfDummy(0, -1, format, varg);
va_end(varg);
OS_vsnprintfDummy(0, -1, format, varg)

UT_Text("\nOS_printf Argument Calculation:\n");
UT_CheckArgumentOffset(varg, 5);
va_end(varg);
}

/* Mimic actual and stub OS_sprintf() */
Expand All @@ -516,10 +516,10 @@ int CalcOffset_OS_sprintf(char *out, const char *format, ...)

va_start(varg, format, 0, 0, 0);
length = OS_vsnprintfDummy(out, -1, format, varg);
va_end(varg);

UT_Text("\nOS_sprintf Argument Calculation:\n");
UT_CheckArgumentOffset(varg, 6);
va_end(varg);
return(length);
}

Expand All @@ -531,10 +531,10 @@ int CalcOffset_OS_snprintf(char *out, unsigned max_len, const char *format, ...)

va_start(varg, format, 0, 0, 0);
length = OS_vsnprintfDummy(out, (int) max_len - 1, format, varg);
va_end(varg);

UT_Text("\nOS_snprintf Argument Calculation:\n");
UT_CheckArgumentOffset(varg, 7);
va_end(varg);
return(length);
}

Expand All @@ -546,10 +546,10 @@ void CalcOffset_OS_printf_stub(const char *string, ...)

va_start(ptr, string, 0, 0, 0);
OS_vsnprintfDummy(tmpString, CFE_ES_MAX_SYSLOG_MSG_SIZE * 2, string, ptr);
va_end(ptr);

UT_Text("\nOS_printf Stub Argument Calculation:\n");
UT_CheckArgumentOffset(ptr, 8);
va_end(ptr);
}

int32 CalcOffset_CFE_ES_WriteToSysLog_stub(const char *pSpecString, ...)
Expand All @@ -559,10 +559,10 @@ int32 CalcOffset_CFE_ES_WriteToSysLog_stub(const char *pSpecString, ...)

va_start(ap, pSpecString, 0, 0, 0);
OS_vsnprintfDummy(tmpString, CFE_ES_MAX_SYSLOG_MSG_SIZE, pSpecString, ap);
va_end(ap);

UT_Text("\nCFE_ES_WriteToSysLog Stub Argument Calculation:\n");
UT_CheckArgumentOffset(ap, 9);
va_end(ap);
return 0;
}

Expand All @@ -577,11 +577,11 @@ int32 CalcOffset_CFE_EVS_SendEvent_stub(uint16 EventID,

va_start(Ptr, Spec, 0, 0, 0);
OS_vsnprintfDummy(BigBuf, CFE_EVS_MAX_MESSAGE_LENGTH, Spec, Ptr);
va_end(Ptr);
UT_AddEventToHistoryDummy(EventID);

UT_Text("\nCFE_EVS_SendEvent Stub Argument Calculation:\n");
UT_CheckArgumentOffset(Ptr, 10);
va_end(Ptr);
return 0;
}

Expand All @@ -597,14 +597,14 @@ int32 CalcOffset_CFE_EVS_SendEventWithAppID_stub(uint16 EventID,

va_start(Ptr, Spec, 0, 0, 0);
OS_vsnprintfDummy(BigBuf, CFE_EVS_MAX_MESSAGE_LENGTH, Spec, Ptr);
va_end(Ptr);
UT_AddEventToHistoryDummy(EventID);
OS_snprintfDummy(cMsg, UT_MAX_MESSAGE_LENGTH,
" CFE_EVS_SendEvent from app %lu: %u, %u - %s",
AppID, EventID, EventType, BigBuf);

UT_Text("\nCFE_EVS_SendEventWithAppID Stub Argument Calculation:\n");
UT_CheckArgumentOffset(Ptr, 11);
va_end(Ptr);
return 0;
}

Expand Down
1 change: 1 addition & 0 deletions src/unit-tests/ostimer-test/ut_ostimer_timerio_test.c
Original file line number Diff line number Diff line change
Expand Up @@ -203,6 +203,7 @@ void UT_os_timerinit_test()
{
res = OS_TimerCreate(&g_timerIds[0], "Timer #0", &g_clkAccuracy, &UT_os_timercallback);
if (res == OS_SUCCESS)
/* cppcheck-suppress syntaxError */
UT_OS_SET_TEST_RESULT_MACRO(apiInfo, idx, testDesc, UT_OS_PASSED)
else
UT_OS_SET_TEST_RESULT_MACRO(apiInfo, idx, testDesc, UT_OS_FAILED)
Expand Down