Convert nano/test TC_END to TC_END_RESULT

All uses of TC_END are functionaly equivalent to each other
and to the TC_END_RESULT macro.  Change TC_END to TC_END_RESULT
so that they are consistent.  In the future when TC_END_RESULT
is extended/expanded, it only has to be done in one place.

Change-Id: I61bad52098187f6115896688e0a545d202b6fd05
Signed-off-by: David Norris <david.norris@intel.com>
This commit is contained in:
David Norris 2015-04-27 14:41:58 -07:00 committed by Anas Nashif
parent df8f130910
commit 8a0db0aa11
7 changed files with 19 additions and 19 deletions

View file

@ -127,7 +127,7 @@ void main (void)
nano_task_sem_take(&sem[2]) ? TC_PASS : TC_FAIL;
get_out:
TC_END (rv, "%s - %s.\n", rv == TC_PASS ? PASS : FAIL, __func__);
TC_END_RESULT (rv);
TC_END_REPORT (rv);
}

View file

@ -788,6 +788,6 @@ void main(void)
#endif
doneTests:
TC_END (rv, "%s - %s.\n", rv == TC_PASS ? PASS : FAIL, __func__);
TC_END_RESULT (rv);
TC_END_REPORT (rv);
}

View file

@ -241,7 +241,7 @@ void fiber1(void)
count++;
}
TC_END(retCode, "%s - %s.\n", retCode == TC_PASS ? PASS : FAIL, __func__);
TC_END_RESULT(retCode);
PRINT_LINE;
/*
@ -308,7 +308,7 @@ void testFiberFifoGetW(void)
TC_PRINT("FIBER FIFO Put to queue1: %p\n", pPutData);
nano_fiber_fifo_put(&nanoFifoObj, pPutData);
TC_END(retCode, "%s - %s.\n", retCode == TC_PASS ? PASS : FAIL, __func__);
TC_END_RESULT(retCode);
} /* testFiberFifoGetW */
@ -365,7 +365,7 @@ void testIsrFifoFromFiber(void)
}
TC_PRINT("\n");
TC_END(retCode, "%s - %s.\n", retCode == TC_PASS ? PASS : FAIL, __func__);
TC_END_RESULT(retCode);
} /* testIsrFifoFromFiber */
@ -435,7 +435,7 @@ void testIsrFifoFromTask(void)
pPutData, pGetData);
}
TC_END(retCode, "%s - %s.\n", retCode == TC_PASS ? PASS : FAIL, __func__);
TC_END_RESULT(retCode);
} /* testIsrFifoFromTask */
/*******************************************************************************
@ -495,7 +495,7 @@ void fiber2(void)
PRINT_LINE;
testIsrFifoFromFiber();
TC_END(retCode, "%s - %s.\n", retCode == TC_PASS ? PASS : FAIL, __func__);
TC_END_RESULT(retCode);
} /* fiber2 */
/*******************************************************************************
@ -583,7 +583,7 @@ void testTaskFifoGetW(void)
TC_PRINT("TASK FIFO Put to queue2: %p\n", pPutData);
nano_task_fifo_put(&nanoFifoObj2, pPutData);
TC_END(retCode, "%s - %s.\n", retCode == TC_PASS ? PASS : FAIL, __func__);
TC_END_RESULT(retCode);
} /* testTaskFifoGetW */
/*******************************************************************************
@ -750,6 +750,6 @@ void main(void)
PRINT_LINE;
exit:
TC_END(retCode, "%s - %s.\n", retCode == TC_PASS ? PASS : FAIL, __func__);
TC_END_RESULT (retCode);
TC_END_REPORT (retCode);
}

View file

@ -521,6 +521,6 @@ void main(void)
rv = taskLifoNonWaitTest ();
}
TC_END (rv, "%s - %s.\n", rv == TC_PASS ? PASS : FAIL, __func__);
TC_END_RESULT (rv);
TC_END_REPORT (rv);
}

View file

@ -477,6 +477,6 @@ void main(void)
}
doneTests:
TC_END (rv, "%s - %s.\n", rv == TC_PASS ? PASS : FAIL, __func__);
TC_END_RESULT (rv);
TC_END_REPORT (rv);
}

View file

@ -232,7 +232,7 @@ void fiber1(void)
count++;
}
TC_END(retCode, "%s - %s.\n", retCode == TC_PASS ? PASS : FAIL, __func__);
TC_END_RESULT(retCode);
PRINT_LINE;
/* Put data */
@ -296,7 +296,7 @@ void testFiberStackPopW(void)
TC_PRINT("FIBER STACK Push to queue1: %d\n", data);
nano_fiber_stack_push(&nanoStackObj, data);
TC_END(retCode, "%s - %s.\n", retCode == TC_PASS ? PASS : FAIL, __func__);
TC_END_RESULT(retCode);
} /* testFiberStackPopW */
@ -356,7 +356,7 @@ void testIsrStackFromFiber(void)
* [data] changes
*/
TC_END(retCode, "%s - %s.\n", retCode == TC_PASS ? PASS : FAIL, __func__);
TC_END_RESULT(retCode);
} /* testIsrStackFromFiber */
@ -420,7 +420,7 @@ void testIsrStackFromTask(void)
myIsrData[3], result);
}
TC_END(retCode, "%s - %s.\n", retCode == TC_PASS ? PASS : FAIL, __func__);
TC_END_RESULT(retCode);
}
/*******************************************************************************
@ -438,7 +438,7 @@ void fiber2(void)
PRINT_LINE;
testIsrStackFromFiber();
TC_END(retCode, "%s - %s.\n", retCode == TC_PASS ? PASS : FAIL, __func__);
TC_END_RESULT(retCode);
}
@ -480,7 +480,7 @@ void testTaskStackPopW(void)
TC_PRINT("TASK STACK Push to queue2: %d\n", data);
nano_task_stack_push(&nanoStackObj2, data);
TC_END(retCode, "%s - %s.\n", retCode == TC_PASS ? PASS : FAIL, __func__);
TC_END_RESULT(retCode);
} /* testTaskStackPopW */
/*******************************************************************************
@ -621,6 +621,6 @@ void main(void)
PRINT_LINE;
exit:
TC_END(retCode, "%s - %s.\n", retCode == TC_PASS ? PASS : FAIL, __func__);
TC_END_RESULT (retCode);
TC_END_REPORT (retCode);
}

View file

@ -609,6 +609,6 @@ void main(void)
#endif
doneTests:
TC_END (rv, "%s - %s.\n", rv == TC_PASS ? PASS : FAIL, __func__);
TC_END_RESULT (rv);
TC_END_REPORT (rv);
}