aboutsummaryrefslogtreecommitdiff
path: root/tests/libtest/first.c
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2007-07-15 20:59:43 +0000
committerDaniel Stenberg <daniel@haxx.se>2007-07-15 20:59:43 +0000
commit1da3192d2d512dccea708d8f7e0b93c7dbe41e3f (patch)
tree33ff0ef81233b2096d193ad7de40941a572cc818 /tests/libtest/first.c
parentdab569d76c5bb89c72a1bdf9ab19896b9d34170b (diff)
let's just export the whole argc + argv pair globally so that each test tool
can take advantage of it however they see fit!
Diffstat (limited to 'tests/libtest/first.c')
-rw-r--r--tests/libtest/first.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/libtest/first.c b/tests/libtest/first.c
index 9e585eace..e2e1bfaed 100644
--- a/tests/libtest/first.c
+++ b/tests/libtest/first.c
@@ -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)
{
@@ -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];