Code

t/unit/: Create one test binary for each *_test.c file.
[sysdb.git] / t / unit / utils / llist_test.c
index 71a6c8c9332a16564dd2518ac1b21069768d6cfb..d6869fa946c1b486f491a467308dc9151cc41de5 100644 (file)
  * ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  */
 
+#if HAVE_CONFIG_H
+#      include "config.h"
+#endif
+
 #include "utils/llist.h"
-#include "libsysdb_test.h"
+#include "testutils.h"
 
 #include <check.h>
 
@@ -370,13 +374,9 @@ START_TEST(test_iter_remove)
 }
 END_TEST
 
-Suite *
-util_llist_suite(void)
+TEST_MAIN("utils::llist")
 {
-       Suite *s = suite_create("utils::llist");
-       TCase *tc;
-
-       tc = tcase_create("core");
+       TCase *tc = tcase_create("core");
        tcase_add_checked_fixture(tc, setup, teardown);
        tcase_add_test(tc, test_clone);
        tcase_add_test(tc, test_destroy);
@@ -390,10 +390,9 @@ util_llist_suite(void)
        tcase_add_test(tc, test_shift);
        tcase_add_test(tc, test_iter);
        tcase_add_test(tc, test_iter_remove);
-       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 : */