Ejemplo n.º 1
0
void COMErrorHook(StatusType error){
	
	com_error_instance++;
	switch (com_error_instance)
	{
		case 1:
			TestRunner_runTest(COMInternalTest_seq1_comerror_instance1());
			break;
		case 2:
			TestRunner_runTest(COMInternalTest_seq1_comerror_instance2());
			break;
		case 3:
			TestRunner_runTest(COMInternalTest_seq1_comerror_instance3());
			break;
		case 4:
			TestRunner_runTest(COMInternalTest_seq1_comerror_instance4());
			break;
		case 5:
			TestRunner_runTest(COMInternalTest_seq1_comerror_instance5());
			break;
		default:
			stdimpl_print("instance error\n");
			break;
	}
	
	
}
Ejemplo n.º 2
0
void CallBackC_callback(void)
{
	instance_callback++;
	switch (instance_callback)
	{
		case 1 :
		{
			TestRunner_runTest(AlarmsTest_seq4_callback_instance1());
			break;
		}
		case 2 :
		{
			TestRunner_runTest(AlarmsTest_seq4_callback_instance2());
			break;
		}
		case 3 :
		{
			TestRunner_runTest(AlarmsTest_seq4_callback_instance3());
			break;
		}
		default:
		{
			stdimpl_print("Instance error");
			break;
		}
	}

	
}
Ejemplo n.º 3
0
ProtectionReturnType ProtectionHook(StatusType Fatalerror)
{
  Fatalerrorstatus = Fatalerror;
	instance_protection++;
  stdimpl_print("ProtectionHook:%d\n",instance_protection);
	switch (instance_protection)
	{
		case 1 :
		{
      TestRunner_runTest(AutosarTPTest_seq4_protection_instance1());
			break;
		}
		case 2 :
		{
      TestRunner_runTest(AutosarTPTest_seq4_protection_instance2());
			break;
		}
		default:
		{
			addFailure("ProtectionHook : Instance error\n", __LINE__, __FILE__);
			break;
		}
	}
  
  return PRO_TERMINATETASKISR;
	
}
Ejemplo n.º 4
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;
		}
	}
	
}
Ejemplo n.º 5
0
void TestRunner_end(void)
{
	char buf[16];
	if (result_.failureCount) {
		stdimpl_print("\r\nrun ");
		stdimpl_itoa(result_.runCount, buf, 10);
		stdimpl_print(buf);
		stdimpl_print(" failures ");
		stdimpl_itoa(result_.failureCount, buf, 10);
		stdimpl_print(buf);
		stdimpl_print("\r\n");
	} else {
		stdimpl_print("\r\nOK (");
		stdimpl_itoa(result_.runCount, buf, 10);
		stdimpl_print(buf);
		stdimpl_print(" tests)\r\n");
	}
}
Ejemplo n.º 6
0
void ErrorHook(StatusType error)
{
	instance_error++;
	switch (instance_error) {
		case 1:
		{
			break;
		}
		case 2:
		{
			TestRunner_runTest(AutosarSTSTest_seq3_error_instance2());	
			break;
		}
		case 3:
		{
			TestRunner_runTest(AutosarSTSTest_seq3_error_instance3());	
			break;
		}
		case 4:
		{
			TestRunner_runTest(AutosarSTSTest_seq3_error_instance4());	
			break;
		}
		case 5:
		{
			TestRunner_runTest(AutosarSTSTest_seq3_error_instance5());	
			break;
		}
		case 6:
		{
			TestRunner_runTest(AutosarSTSTest_seq3_error_instance6());	
			break;
		}
		default:
		{
			stdimpl_print("instance error\n");
			break;
		}
	}
	
}
Ejemplo n.º 7
0
void ErrorHook(void)
{
	error_instance++;
	switch (error_instance) {
		case 1:
		{
			TestRunner_runTest(AutosarCOREOSTest_seq3_error_instance1());
			break;
		}
		case 2:
		{
			TestRunner_runTest(AutosarCOREOSTest_seq3_error_instance2());
			break;
		}
		default:
		{
			stdimpl_print("instance error\n");
			break;
		}
	}
}
Ejemplo n.º 8
0
void ErrorHook(StatusType error)
{
	instance_error++;
	switch (instance_error)
	{
		case 1 :
		{
			TestRunner_runTest(AutosarSTTest_seq4_error_instance1());
			break;
		}
		case 2 :
		{
			TestRunner_runTest(AutosarSTTest_seq4_error_instance2());
			break;
		}
		default:
		{
			stdimpl_print("Instance error");
			break;
		}
	}
	
}
Ejemplo n.º 9
0
static void TestRunner_addFailure(TestListner* self,Test* test,char* msg,int line,char* file)
{
    (void)self;
	stdimpl_print("\n");
	stdimpl_print(Test_name(root_));
	stdimpl_print(".");
	stdimpl_print(Test_name(test));
	{
		char buf[16];
		stdimpl_print(" (");
		stdimpl_print(file);
		stdimpl_print(" ");
		stdimpl_itoa(line, buf, 10);
		stdimpl_print(buf);
		stdimpl_print(") ");
	}
	stdimpl_print(msg);
	stdimpl_print("\n");

	TestRunnerHadErrors = 1;
}
Ejemplo n.º 10
0
static void TestRunner_startTest(TestListner* self,Test* test)
{
    (void)self;
    (void)test;
	stdimpl_print(".");
}
Ejemplo n.º 11
0
void ErrorHook(StatusType error)
{
    stdimpl_print("ErrorHook : Instance error\n");
}