index a1ac30a37983afa98c60228ed846ad567bb13e6d..db467fdfdb0dbd08dae33b67337732ef3577bc8d 100644 (file)
--- a/t/unit/utils/dbi_test.c
+++ b/t/unit/utils/dbi_test.c
# include "config.h"
#endif /* HAVE_CONFIG_H */
-#include "libsysdb_test.h"
+#include "testutils.h"
#include "utils/dbi.h"
#include <check.h>
}
END_TEST
-/*
- * test API
- */
-
-Suite *
-util_dbi_suite(void)
+TEST_MAIN("utils::dbi")
{
- Suite *s = suite_create("utils::dbi");
- TCase *tc;
-
- tc = tcase_create("core");
+ TCase *tc = tcase_create("core");
tcase_add_checked_fixture(tc, setup, teardown);
tcase_add_test(tc, test_sdb_dbi_client_connect);
tcase_add_test(tc, test_sdb_dbi_client_check_conn);
tcase_add_test(tc, test_sdb_dbi_exec_query);
- suite_add_tcase(s, tc);
-
- return s;
-} /* util_llist_suite */
+ ADD_TCASE(tc);
+}
+TEST_MAIN_END
/* vim: set tw=78 sw=4 ts=4 noexpandtab : */