X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=t%2Funit%2Futils%2Funixsock_test.c;h=321a96e7d5d7fd389dc9afa51339ec51718d0132;hb=1ef0d00327e4b5f56b438f44053f48fd8b198baa;hp=c28781ea051f815cd739fe3b4df23501904dbd00;hpb=cf17313d62dcf1c10df0fe19287e354ede68206b;p=sysdb.git diff --git a/t/unit/utils/unixsock_test.c b/t/unit/utils/unixsock_test.c index c28781e..321a96e 100644 --- a/t/unit/utils/unixsock_test.c +++ b/t/unit/utils/unixsock_test.c @@ -30,10 +30,12 @@ #endif /* HAVE_CONFIG_H */ /* required for fopencookie support */ -#define _GNU_SOURCE +#ifndef _GNU_SOURCE +# define _GNU_SOURCE +#endif #include "utils/unixsock.h" -#include "libsysdb_test.h" +#include "testutils.h" #include @@ -360,22 +362,17 @@ START_TEST(test_sdb_unixsock_client_recv) } END_TEST -Suite * -util_unixsock_suite(void) +TEST_MAIN("utils::unixsock") { - Suite *s = suite_create("utils::unixsock"); - TCase *tc; - - tc = tcase_create("core"); + TCase *tc = tcase_create("core"); tcase_add_checked_fixture(tc, setup, teardown); tcase_add_test(tc, test_sdb_unixsock_client_create); tcase_add_test(tc, test_sdb_unixsock_client_connect); tcase_add_test(tc, test_sdb_unixsock_client_send); tcase_add_test(tc, test_sdb_unixsock_client_recv); - suite_add_tcase(s, tc); - - return s; -} /* util_unixsock_suite */ + ADD_TCASE(tc); +} +TEST_MAIN_END /* vim: set tw=78 sw=4 ts=4 noexpandtab : */