testcase TC_ParallelIdentification()
{
// Perform variant identification for 3 ECUs in parallel
diagStartVariantIdentification("ECU1");
testJoinDiagVariantIdentificationCompleted("ECU1");
diagStartVariantIdentification("ECU2");
testJoinDiagVariantIdentificationCompleted("ECU2");
diagStartVariantIdentification("ECU3");
testJoinDiagVariantIdentificationCompleted("ECU3");
if( 0 < TestWaitForAllJoinedEvents(5000))
TestStepPass( "All variant identification tasks completed in time.");
else
TestStepFail( "Not all variant identification tasks completed in time!");
{
char identifiedVariant[100];
diagGetIdentifiedVariant( "ECU1", identifiedVariant, elcount(identifiedVariant));
if( 0 == strncmp( identifiedVariant, "Beta", 5))
TestStepFail( "Should not run this test with beta version!");
}
}