X-Git-Url: https://git.tokkee.org/?p=sysdb.git;a=blobdiff_plain;f=t%2Funit%2Fcore%2Fstore_test.c;fp=t%2Funit%2Fcore%2Fstore_test.c;h=7ea53bcaf76d25bb8efd70e12ea4f13db6dadb8d;hp=aab93aab1671a6995818b3da64fede48ec4d37b5;hb=967d9181f6329ca00b910c0c458b1c6b60f2a0d6;hpb=f353d8fe20a02ea9b4700371e94f82da33d7beab diff --git a/t/unit/core/store_test.c b/t/unit/core/store_test.c index aab93aa..7ea53bc 100644 --- a/t/unit/core/store_test.c +++ b/t/unit/core/store_test.c @@ -25,9 +25,13 @@ * ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ +#if HAVE_CONFIG_H +# include "config.h" +#endif + #include "core/store.h" #include "core/store-private.h" -#include "libsysdb_test.h" +#include "testutils.h" #include #include @@ -738,13 +742,9 @@ START_TEST(test_scan) } END_TEST -Suite * -core_store_suite(void) +TEST_MAIN("core::store") { - Suite *s = suite_create("core::store"); - TCase *tc; - - tc = tcase_create("core"); + TCase *tc = tcase_create("core"); tcase_add_test(tc, test_store_host); tcase_add_test(tc, test_store_get_host); tcase_add_test(tc, test_store_attr); @@ -757,10 +757,9 @@ core_store_suite(void) tcase_add_test(tc, test_interval); tcase_add_test(tc, test_scan); tcase_add_unchecked_fixture(tc, NULL, sdb_store_clear); - suite_add_tcase(s, tc); - - return s; -} /* core_store_suite */ + ADD_TCASE(tc); +} +TEST_MAIN_END /* vim: set tw=78 sw=4 ts=4 noexpandtab : */