2 * Copyright (C) 2011 Data Differential, http://datadifferential.com/
3 * Copyright (C) 2006-2009 Brian Aker
6 * Use and distribution licensed under the BSD license. See
7 * the COPYING file in the parent directory for full text.
11 Structures for generic tests.
17 #include <arpa/inet.h>
19 #include <libtest/visibility.h>
21 #include <libtest/error.h>
22 #include <libtest/callbacks.h>
23 #include <libtest/test.h>
24 #include <libtest/strerror.h>
25 #include <libtest/core.h>
26 #include <libtest/runner.h>
27 #include <libtest/stats.h>
28 #include <libtest/collection.h>
29 #include <libtest/framework.h>
30 #include <libtest/get.h>
35 in_port_t default_port();
38 void set_default_port(in_port_t port);
41 #define test_literal_param(X) (X), (static_cast<size_t>((sizeof(X) - 1)))
43 #define test_literal_param(X) (X), ((size_t)((sizeof(X) - 1)))
46 #define test_string_make_from_cstr(X) (X), ((X) ? strlen(X) : 0)