Commit 1b11507b authored by Juergen Haug's avatar Juergen Haug
Browse files

fixed etunit skip

Change-Id: If610356b6df645be4bdf7086fd6a6230f815523b
parent 5f9d3998
......@@ -238,6 +238,9 @@ void etUnit_closeTestCase(etInt16 id) {
void etUnit_skipTestCase(etInt16 id, const char* msg) {
etInt16 caseId = getOpenTestCaseId(id);
etInt16 parallelId = getParallelIndex(caseId);
etUnit_testcaseOpen[parallelId] = ET_FALSE;
if (etUnit_reportfile != NULL) {
etLogger_fprintf(etUnit_reportfile, "tc skip %d: %s\n", caseId, msg);
}
......
......@@ -93,12 +93,18 @@ void TestEtUnit_Singleton_TestCase(){
etUnit_closeTestCase(0);
}
void TestEtUnit_Skip_TestCase(){
etInt16 id = etUnit_openTestCase("SkipTestcase");
assert(id == 0);
etUnit_skipTestCase(0, "skip msg");
}
void TestEtUnit_runSuite(void){
etUnit_openTestSuite("org.eclipse.etrice.runtime.c.tests.TestEtUnit");
// test parallel first due test case number restriction
TestEtUnit_Parallel_TestCase();
TestEtUnit_Singleton_TestCase();
TestEtUnit_Skip_TestCase();
ADD_TESTCASE(TestEtUnit_Expect_Order);
ADD_TESTCASE(TestEtUnit_Expect);
etUnit_closeTestSuite();
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment