1*a466cc55SCy Schubert /* AUTOGENERATED FILE. DO NOT EDIT. */ 2*a466cc55SCy Schubert 3*a466cc55SCy Schubert //=======Test Runner Used To Run Each Test Below===== 4*a466cc55SCy Schubert #define RUN_TEST(TestFunc, TestLineNum) \ 5*a466cc55SCy Schubert { \ 6*a466cc55SCy Schubert Unity.CurrentTestName = #TestFunc; \ 7*a466cc55SCy Schubert Unity.CurrentTestLineNumber = TestLineNum; \ 8*a466cc55SCy Schubert Unity.NumberOfTests++; \ 9*a466cc55SCy Schubert if (TEST_PROTECT()) \ 10*a466cc55SCy Schubert { \ 11*a466cc55SCy Schubert setUp(); \ 12*a466cc55SCy Schubert TestFunc(); \ 13*a466cc55SCy Schubert } \ 14*a466cc55SCy Schubert if (TEST_PROTECT() && !TEST_IS_IGNORED) \ 15*a466cc55SCy Schubert { \ 16*a466cc55SCy Schubert tearDown(); \ 17*a466cc55SCy Schubert } \ 18*a466cc55SCy Schubert UnityConcludeTest(); \ 19*a466cc55SCy Schubert } 20*a466cc55SCy Schubert 21*a466cc55SCy Schubert //=======Automagically Detected Files To Include===== 22*a466cc55SCy Schubert #include "unity.h" 23*a466cc55SCy Schubert #include <setjmp.h> 24*a466cc55SCy Schubert #include <stdio.h> 25*a466cc55SCy Schubert #include "config.h" 26*a466cc55SCy Schubert #include "ntp_stdlib.h" 27*a466cc55SCy Schubert #include <sys/types.h> 28*a466cc55SCy Schubert #include <sys/stat.h> 29*a466cc55SCy Schubert #include <unistd.h> 30*a466cc55SCy Schubert #include <dirent.h> 31*a466cc55SCy Schubert #include <stdarg.h> 32*a466cc55SCy Schubert 33*a466cc55SCy Schubert //=======External Functions This Runner Calls===== 34*a466cc55SCy Schubert extern void setUp(void); 35*a466cc55SCy Schubert extern void tearDown(void); 36*a466cc55SCy Schubert extern void test_CurrentWorkingDir(void); 37*a466cc55SCy Schubert extern void test_DevLinks(void); 38*a466cc55SCy Schubert 39*a466cc55SCy Schubert 40*a466cc55SCy Schubert //=======Suite Setup===== suite_setup(void)41*a466cc55SCy Schubertstatic void suite_setup(void) 42*a466cc55SCy Schubert { 43*a466cc55SCy Schubert extern int change_iobufs(int); 44*a466cc55SCy Schubert extern int change_logfile(const char*, int); 45*a466cc55SCy Schubert change_iobufs(1); 46*a466cc55SCy Schubert change_logfile("stderr", 0); 47*a466cc55SCy Schubert } 48*a466cc55SCy Schubert 49*a466cc55SCy Schubert //=======Test Reset Option===== 50*a466cc55SCy Schubert void resetTest(void); resetTest(void)51*a466cc55SCy Schubertvoid resetTest(void) 52*a466cc55SCy Schubert { 53*a466cc55SCy Schubert tearDown(); 54*a466cc55SCy Schubert setUp(); 55*a466cc55SCy Schubert } 56*a466cc55SCy Schubert 57*a466cc55SCy Schubert char const *progname; 58*a466cc55SCy Schubert 59*a466cc55SCy Schubert 60*a466cc55SCy Schubert //=======MAIN===== main(int argc,char * argv[])61*a466cc55SCy Schubertint main(int argc, char *argv[]) 62*a466cc55SCy Schubert { 63*a466cc55SCy Schubert progname = argv[0]; 64*a466cc55SCy Schubert suite_setup(); 65*a466cc55SCy Schubert UnityBegin("realpath.c"); 66*a466cc55SCy Schubert RUN_TEST(test_CurrentWorkingDir, 48); 67*a466cc55SCy Schubert RUN_TEST(test_DevLinks, 59); 68*a466cc55SCy Schubert 69*a466cc55SCy Schubert return (UnityEnd()); 70*a466cc55SCy Schubert } 71