- /**
- * Macro used to generate a main() for a test to be compiled
- * on hosted platform.
- */
- #define TEST_MAIN(module) \
- int main(void) \
- { \
- if (module##_testSetup() != 0) \
- return 1; \
- if (module##_testRun() != 0) \
- return 2; \
- if (module##_testTearDown() != 0) \
- return 3; \
- return 0; \
- }