int UnityMain(int argc, const char* argv[], void (*runAllTests)(void)) { int result = UnityGetCommandLineOptions(argc, argv); unsigned int r; if (result != 0) return result; for (r = 0; r < UnityFixture.RepeatCount; r++) { UnityBegin(argv[0]); announceTestRun(r); runAllTests(); UNITY_OUTPUT_CHAR('\n'); UnityEnd(); } return UnityFailureCount(); }
int UnityMain(int argc, char* argv[], void (*runAllTests)(struct _Unity * const unity_p), struct _Unity * const unity_p) { int result = UnityGetCommandLineOptions(argc, argv, unity_p); unsigned int r; if (result != 0) return result; for (r = 0; r < unity_p->RepeatCount; r++) { announceTestRun(r, unity_p); UnityBegin(unity_p); runAllTests(unity_p); UNITY_OUTPUT_CHAR('\n'); UnityEnd(unity_p); } return UnityFailureCount(unity_p); }