28#ifndef DBUS_TEST_TAP_H
29#define DBUS_TEST_TAP_H
31#include <dbus/dbus-internals.h>
33DBUS_EMBEDDED_TESTS_EXPORT
34void _dbus_test_fatal (
const char *format,
35 ...) _DBUS_GNUC_NORETURN _DBUS_GNUC_PRINTF (1, 2);
37DBUS_EMBEDDED_TESTS_EXPORT
38void _dbus_test_diag (const
char *format,
39 ...) _DBUS_GNUC_PRINTF (1, 2);
41DBUS_EMBEDDED_TESTS_EXPORT
42void _dbus_test_skip_all (const
char *format,
43 ...) _DBUS_GNUC_NORETURN _DBUS_GNUC_PRINTF (1, 2);
45DBUS_EMBEDDED_TESTS_EXPORT
46void _dbus_test_ok (const
char *format,
47 ...) _DBUS_GNUC_PRINTF (1, 2);
48DBUS_EMBEDDED_TESTS_EXPORT
49void _dbus_test_not_ok (const
char *format,
50 ...) _DBUS_GNUC_PRINTF (1, 2);
51DBUS_EMBEDDED_TESTS_EXPORT
52void _dbus_test_skip (const
char *format,
53 ...) _DBUS_GNUC_PRINTF (1, 2);
55DBUS_EMBEDDED_TESTS_EXPORT
56void _dbus_test_check_memleaks (const
char *test_name);
58DBUS_EMBEDDED_TESTS_EXPORT
59int _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); \