aboutsummaryrefslogtreecommitdiff
path: root/tests/libtest/test.h
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/test.h
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/test.h')
-rw-r--r--tests/libtest/test.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/libtest/test.h b/tests/libtest/test.h
index fba51a720..5cbdcede4 100644
--- a/tests/libtest/test.h
+++ b/tests/libtest/test.h
@@ -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);