Loading tests/libtest/first.c +4 −0 Original line number Diff line number Diff line Loading @@ -35,6 +35,7 @@ int select_test (int num_fds, fd_set *rd, fd_set *wr, fd_set *exc, } char *arg2=NULL; char *arg3=NULL; int main(int argc, char **argv) { Loading Loading @@ -67,6 +68,9 @@ int main(int argc, char **argv) if(argc>2) arg2=argv[2]; if(argc>3) arg3=argv[3]; URL = argv[1]; /* provide this to the rest */ fprintf(stderr, "URL: %s\n", URL); Loading tests/libtest/test.h +1 −0 Original line number Diff line number Diff line Loading @@ -37,6 +37,7 @@ #define TEST_ERR_RUNS_FOREVER 99 extern char *arg2; /* set by first.c to the argv[2] or NULL */ extern char *arg3; /* set by first.c to the argv[3] or NULL */ int select_test (int num_fds, fd_set *rd, fd_set *wr, fd_set *exc, struct timeval *tv); Loading Loading
tests/libtest/first.c +4 −0 Original line number Diff line number Diff line Loading @@ -35,6 +35,7 @@ int select_test (int num_fds, fd_set *rd, fd_set *wr, fd_set *exc, } char *arg2=NULL; char *arg3=NULL; int main(int argc, char **argv) { Loading Loading @@ -67,6 +68,9 @@ int main(int argc, char **argv) if(argc>2) arg2=argv[2]; if(argc>3) arg3=argv[3]; URL = argv[1]; /* provide this to the rest */ fprintf(stderr, "URL: %s\n", URL); Loading
tests/libtest/test.h +1 −0 Original line number Diff line number Diff line Loading @@ -37,6 +37,7 @@ #define TEST_ERR_RUNS_FOREVER 99 extern char *arg2; /* set by first.c to the argv[2] or NULL */ extern char *arg3; /* set by first.c to the argv[3] or NULL */ int select_test (int num_fds, fd_set *rd, fd_set *wr, fd_set *exc, struct timeval *tv); Loading