X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;ds=sidebyside;f=t%2Funit%2Fcore%2Fdata_test.c;h=71dae2acbb65f673d011d935e562eba65243a495;hb=967d9181f6329ca00b910c0c458b1c6b60f2a0d6;hp=cf2603575bc0fa3a3ff47f5de1f2225e2d167e53;hpb=f353d8fe20a02ea9b4700371e94f82da33d7beab;p=sysdb.git diff --git a/t/unit/core/data_test.c b/t/unit/core/data_test.c index cf26035..71dae2a 100644 --- a/t/unit/core/data_test.c +++ b/t/unit/core/data_test.c @@ -25,8 +25,12 @@ * ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ +#if HAVE_CONFIG_H +# include "config.h" +#endif + #include "core/data.h" -#include "libsysdb_test.h" +#include "testutils.h" #include #include @@ -2184,13 +2188,9 @@ START_TEST(test_parse) } END_TEST -Suite * -core_data_suite(void) +TEST_MAIN("core::data") { - Suite *s = suite_create("core::data"); - TCase *tc; - - tc = tcase_create("core"); + TCase *tc = tcase_create("core"); tcase_add_test(tc, test_data); tcase_add_test(tc, test_cmp); tcase_add_test(tc, test_strcmp); @@ -2200,10 +2200,9 @@ core_data_suite(void) tcase_add_test(tc, test_expr_eval); tcase_add_test(tc, test_format); tcase_add_test(tc, test_parse); - suite_add_tcase(s, tc); - - return s; -} /* core_data_suite */ + ADD_TCASE(tc); +} +TEST_MAIN_END /* vim: set tw=78 sw=4 ts=4 noexpandtab : */