28 #ifndef DBUS_TEST_TAP_H
29 #define DBUS_TEST_TAP_H
31 #include <dbus/dbus-internals.h>
33 DBUS_EMBEDDED_TESTS_EXPORT
34 void _dbus_test_fatal (
const char *format,
35 ...) _DBUS_GNUC_NORETURN _DBUS_GNUC_PRINTF (1, 2);
37 DBUS_EMBEDDED_TESTS_EXPORT
38 void _dbus_test_diag (const
char *format,
39 ...) _DBUS_GNUC_PRINTF (1, 2);
41 DBUS_EMBEDDED_TESTS_EXPORT
42 void _dbus_test_skip_all (const
char *format,
43 ...) _DBUS_GNUC_NORETURN _DBUS_GNUC_PRINTF (1, 2);
45 DBUS_EMBEDDED_TESTS_EXPORT
46 void _dbus_test_ok (const
char *format,
47 ...) _DBUS_GNUC_PRINTF (1, 2);
48 DBUS_EMBEDDED_TESTS_EXPORT
49 void _dbus_test_not_ok (const
char *format,
50 ...) _DBUS_GNUC_PRINTF (1, 2);
51 DBUS_EMBEDDED_TESTS_EXPORT
52 void _dbus_test_skip (const
char *format,
53 ...) _DBUS_GNUC_PRINTF (1, 2);
55 DBUS_EMBEDDED_TESTS_EXPORT
56 void _dbus_test_check_memleaks (const
char *test_name);
58 DBUS_EMBEDDED_TESTS_EXPORT
59 int _dbus_test_done_testing (
void);
61 #define _dbus_test_check(a) do { \
63 _dbus_test_not_ok ("%s:%d - '%s' failed\n", __FILE__, __LINE__, #a); \