1 /* $Id: libtest.h 5955 2002-12-08 09:28:32Z rra $
3 ** Some utility routines for writing tests.
10 #include <inn/defines.h>
12 /* A global buffer into which errors_capture stores errors. */
17 void ok(int n, int success);
18 void ok_int(int n, int wanted, int seen);
19 void ok_string(int n, const char *wanted, const char *seen);
21 /* Turn on capturing of errors with errors_capture. Errors reported by warn
22 will be stored in the global errors variable. Turn this off again with
23 errors_uncapture. Caller is responsible for freeing errors when done. */
24 void errors_capture(void);
25 void errors_uncapture(void);
29 #endif /* TESTLIB_H */