Пример #1
0
void ErrorHook(StatusType error)
{
	instance_error++;
	switch (instance_error)
	{
		case 1 :
		{
			TestRunner_runTest(AutosarSTTest_seq1_error_instance1());	
			break;
		}
		case 2 :
		{
			TestRunner_runTest(AutosarSTTest_seq1_error_instance2());	
			break;
		}
		case 3 :
		{
			TestRunner_runTest(AutosarSTTest_seq1_error_instance3());	
			break;
		}
		case 4 :
		{
			TestRunner_runTest(AutosarSTTest_seq1_error_instance4());	
			break;
		}
		case 5 :
		{
			TestRunner_runTest(AutosarSTTest_seq1_error_instance5());	
			break;
		}
		case 6 :
		{
			TestRunner_runTest(AutosarSTTest_seq1_error_instance6());	
			break;
		}
		case 7 :
		{
			TestRunner_runTest(AutosarSTTest_seq1_error_instance7());	
			break;
		}
		case 8 :
		{
			TestRunner_runTest(AutosarSTTest_seq1_error_instance8());	
			break;
		}
		case 9 :
		{
			TestRunner_runTest(AutosarSTTest_seq1_error_instance9());	
			break;
		}
		default:
		{
			stdimpl_print("Instance error");
			break;
		}
	}
	
}
Пример #2
0
void ErrorHook(StatusType error)
{
	instance_error++;
	switch (instance_error)
	{
		case 1 :
		{
			TestRunner_runTest(AutosarSTTest_seq1_error_instance1());	
			break;
		}
		case 2 :
		{
			TestRunner_runTest(AutosarSTTest_seq1_error_instance2());	
			break;
		}
		case 3 :
		{
			TestRunner_runTest(AutosarSTTest_seq1_error_instance3());	
			break;
		}
		case 4 :
		{
			TestRunner_runTest(AutosarSTTest_seq1_error_instance4());	
			break;
		}
		case 5 :
		{
			TestRunner_runTest(AutosarSTTest_seq1_error_instance5());	
			break;
		}
		case 6 :
		{
			TestRunner_runTest(AutosarSTTest_seq1_error_instance6());	
			break;
		}
		case 7 :
		{
			TestRunner_runTest(AutosarSTTest_seq1_error_instance7());	
			break;
		}
		case 8 :
		{
			TestRunner_runTest(AutosarSTTest_seq1_error_instance8());	
			break;
		}
		case 9 :
		{
			TestRunner_runTest(AutosarSTTest_seq1_error_instance9());	
			break;
		}
		default:
		{
			addFailure("Instance error", __LINE__, __FILE__);
			break;
		}
	}
	
}