Loading tests/libtest/first.c +7 −0 Original line number Diff line number Diff line Loading @@ -36,6 +36,9 @@ int select_test (int num_fds, fd_set *rd, fd_set *wr, fd_set *exc, char *arg2=NULL; char *arg3=NULL; int test_argc; char **test_argv; int main(int argc, char **argv) { Loading Loading @@ -65,6 +68,10 @@ int main(int argc, char **argv) fprintf(stderr, "Pass URL as argument please\n"); return 1; } test_argc = argc; test_argv = argv; if(argc>2) arg2=argv[2]; Loading tests/libtest/test.h +4 −0 Original line number Diff line number Diff line Loading @@ -39,6 +39,10 @@ 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 */ /* argc and argv as passed in to the main() function */ extern int test_argc; extern char **test_argv; int select_test (int num_fds, fd_set *rd, fd_set *wr, fd_set *exc, struct timeval *tv); Loading Loading
tests/libtest/first.c +7 −0 Original line number Diff line number Diff line Loading @@ -36,6 +36,9 @@ int select_test (int num_fds, fd_set *rd, fd_set *wr, fd_set *exc, char *arg2=NULL; char *arg3=NULL; int test_argc; char **test_argv; int main(int argc, char **argv) { Loading Loading @@ -65,6 +68,10 @@ int main(int argc, char **argv) fprintf(stderr, "Pass URL as argument please\n"); return 1; } test_argc = argc; test_argv = argv; if(argc>2) arg2=argv[2]; Loading
tests/libtest/test.h +4 −0 Original line number Diff line number Diff line Loading @@ -39,6 +39,10 @@ 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 */ /* argc and argv as passed in to the main() function */ extern int test_argc; extern char **test_argv; int select_test (int num_fds, fd_set *rd, fd_set *wr, fd_set *exc, struct timeval *tv); Loading