Skip to content

Commit

Permalink
Merge pull request #1093 from jphickey/fix-1088-coretest-taskdelete
Browse files Browse the repository at this point in the history
Fix #1088, avoid task delete during UtPrintf
  • Loading branch information
astrogeco authored Jul 2, 2021
2 parents b671b7e + 4c5c953 commit 6f1b5d5
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions src/bsp/generic-vxworks/src/bsp_start.c
Original file line number Diff line number Diff line change
Expand Up @@ -103,8 +103,8 @@ int OS_BSPMain(void)
/*
* Initialize the low level access sem
*/
OS_BSP_GenericVxWorksGlobal.AccessMutex =
semMInitialize(OS_BSP_GenericVxWorksGlobal.AccessMutexMem, SEM_Q_PRIORITY | SEM_INVERSION_SAFE);
OS_BSP_GenericVxWorksGlobal.AccessMutex = semMInitialize(OS_BSP_GenericVxWorksGlobal.AccessMutexMem,
SEM_Q_PRIORITY | SEM_INVERSION_SAFE | SEM_DELETE_SAFE);

if (OS_BSP_GenericVxWorksGlobal.AccessMutex == (SEM_ID)0)
{
Expand Down
6 changes: 3 additions & 3 deletions src/unit-tests/oscore-test/ut_oscore_task_test.c
Original file line number Diff line number Diff line change
Expand Up @@ -163,10 +163,10 @@ void UT_os_task_create_test()
{
break;
}
}

/* Delay to let child tasks run */
OS_TaskDelay(500);
/* Delay to let child task run */
OS_TaskDelay(200);
}

/* Reset test environment */
for (i = 0; i < OS_MAX_TASKS; i++)
Expand Down

0 comments on commit 6f1b5d5

Please sign in to comment.