27#ifndef DBUS_TEST_TAP_H
28#define DBUS_TEST_TAP_H
30#include <dbus/dbus-internals.h>
32DBUS_EMBEDDED_TESTS_EXPORT
33void _dbus_test_fatal (
const char *format,
34 ...) _DBUS_GNUC_NORETURN _DBUS_GNUC_PRINTF (1, 2);
36DBUS_EMBEDDED_TESTS_EXPORT
37void _dbus_test_diag (const
char *format,
38 ...) _DBUS_GNUC_PRINTF (1, 2);
40DBUS_EMBEDDED_TESTS_EXPORT
41void _dbus_test_skip_all (const
char *format,
42 ...) _DBUS_GNUC_NORETURN _DBUS_GNUC_PRINTF (1, 2);
44DBUS_EMBEDDED_TESTS_EXPORT
45void _dbus_test_ok (const
char *format,
46 ...) _DBUS_GNUC_PRINTF (1, 2);
47DBUS_EMBEDDED_TESTS_EXPORT
48void _dbus_test_not_ok (const
char *format,
49 ...) _DBUS_GNUC_PRINTF (1, 2);
50DBUS_EMBEDDED_TESTS_EXPORT
51void _dbus_test_skip (const
char *format,
52 ...) _DBUS_GNUC_PRINTF (1, 2);
54DBUS_EMBEDDED_TESTS_EXPORT
55void _dbus_test_check_memleaks (const
char *test_name);
57DBUS_EMBEDDED_TESTS_EXPORT
58int _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); \