27 #ifndef DBUS_TEST_TAP_H
28 #define DBUS_TEST_TAP_H
30 #include <dbus/dbus-internals.h>
32 DBUS_EMBEDDED_TESTS_EXPORT
33 void _dbus_test_fatal (
const char *format,
34 ...) _DBUS_GNUC_NORETURN _DBUS_GNUC_PRINTF (1, 2);
36 DBUS_EMBEDDED_TESTS_EXPORT
37 void _dbus_test_diag (const
char *format,
38 ...) _DBUS_GNUC_PRINTF (1, 2);
40 DBUS_EMBEDDED_TESTS_EXPORT
41 void _dbus_test_skip_all (const
char *format,
42 ...) _DBUS_GNUC_NORETURN _DBUS_GNUC_PRINTF (1, 2);
44 DBUS_EMBEDDED_TESTS_EXPORT
45 void _dbus_test_ok (const
char *format,
46 ...) _DBUS_GNUC_PRINTF (1, 2);
47 DBUS_EMBEDDED_TESTS_EXPORT
48 void _dbus_test_not_ok (const
char *format,
49 ...) _DBUS_GNUC_PRINTF (1, 2);
50 DBUS_EMBEDDED_TESTS_EXPORT
51 void _dbus_test_skip (const
char *format,
52 ...) _DBUS_GNUC_PRINTF (1, 2);
54 DBUS_EMBEDDED_TESTS_EXPORT
55 void _dbus_test_check_memleaks (const
char *test_name);
57 DBUS_EMBEDDED_TESTS_EXPORT
58 int _dbus_test_done_testing (
void);
60 #define _dbus_test_check(a) do { \
62 _dbus_test_not_ok ("%s:%d - '%s' failed\n", __FILE__, __LINE__, #a); \