Remove the 'death' tasks from the demo as on Win2K and WinXP the behaviour of the TerminateThread() function is such that resources leak and eventually the 'death' tests will fail.

This commit is contained in:
Richard Barry 2010-11-22 16:11:16 +00:00
parent 97ce25072a
commit 93b74b6f8d
3 changed files with 1 additions and 13 deletions

View file

@ -96,7 +96,6 @@
#include "QPeek.h"
#include "recmutex.h"
#include "flop.h"
#include "death.h"
/* Priorities at which the tasks are created. */
#define mainCHECK_TASK_PRIORITY ( configMAX_PRIORITIES - 1 )
@ -130,11 +129,6 @@ int main( void )
vStartMathTasks( mainFLOP_TASK_PRIORITY );
vStartRecursiveMutexTasks();
/* The suicide tasks must be created last as they need to know how many
tasks were running prior to their creation in order to ascertain whether
or not the correct/expected number of tasks are running at any given time. */
vCreateSuicidalTasks( mainCREATOR_TASK_PRIORITY );
/* Start the scheduler itself. */
vTaskStartScheduler();
@ -190,10 +184,6 @@ char *pcStatusMessage = "OK";
{
pcStatusMessage = "Error: Flop";
}
else if( xIsCreateTaskStillRunning() != pdPASS )
{
pcStatusMessage = "Error: Create";
}
else if( xAreRecursiveMutexTasksStillRunning() != pdTRUE )
{
pcStatusMessage = "Error: RecMutex";