enable memory debugging the same way the curl command line tool already does
[platform/upstream/curl.git] / tests / libtest / test.h
1 #ifdef HAVE_CONFIG_H
2 /* Now include the setup.h file from libcurl's private libdir (the source
3    version, but that might include "config.h" from the build dir so we need
4    both of them in the include path), so that we get good in-depth knowledge
5    about the system we're building this on */
6 #include "setup.h"
7 #endif
8
9 #include <curl.h>
10 #include <stdio.h>
11 #include <string.h>
12 #include <stdlib.h>
13
14 #ifdef HAVE_SYS_SOCKET_H
15 #include <sys/socket.h>
16 #endif
17 #ifdef HAVE_SYS_SELECT_H
18 /* since so many tests use select(), we can just as well include it here */
19 #include <sys/select.h>
20 #endif
21 #ifdef HAVE_UNISTD_H
22 /* at least somewhat oldish FreeBSD systems need this for select() */
23 #include <unistd.h>
24 #endif
25
26 #ifndef FALSE
27 #define FALSE 0
28 #endif
29
30 #ifndef TRUE
31 #define TRUE 1
32 #endif
33
34 extern char *arg2; /* set by first.c to the argv[2] or NULL */
35 int test(char *URL); /* the actual test function provided by each individual
36                         libXXX.c file */