X-Git-Url: https://git.tokkee.org/?p=sysdb.git;a=blobdiff_plain;f=t%2Funit%2Ffrontend%2Fparser_test.c;h=c35ea4e658b1c82be983ceb311baee8f4daabbb9;hp=48a1a97856b0304e159d2c26bddbb5ad340f18c2;hb=967d9181f6329ca00b910c0c458b1c6b60f2a0d6;hpb=f353d8fe20a02ea9b4700371e94f82da33d7beab diff --git a/t/unit/frontend/parser_test.c b/t/unit/frontend/parser_test.c index 48a1a97..c35ea4e 100644 --- a/t/unit/frontend/parser_test.c +++ b/t/unit/frontend/parser_test.c @@ -25,11 +25,15 @@ * ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ +#if HAVE_CONFIG_H +# include "config.h" +#endif + #include "frontend/connection.h" #include "frontend/parser.h" #include "core/store-private.h" #include "core/object.h" -#include "libsysdb_test.h" +#include "testutils.h" #include #include @@ -787,20 +791,15 @@ START_TEST(test_parse_expr) } END_TEST -Suite * -fe_parser_suite(void) +TEST_MAIN("frontend::parser") { - Suite *s = suite_create("frontend::parser"); - TCase *tc; - - tc = tcase_create("core"); + TCase *tc = tcase_create("core"); TC_ADD_LOOP_TEST(tc, parse); TC_ADD_LOOP_TEST(tc, parse_matcher); TC_ADD_LOOP_TEST(tc, parse_expr); - suite_add_tcase(s, tc); - - return s; -} /* util_parser_suite */ + ADD_TCASE(tc); +} +TEST_MAIN_END /* vim: set tw=78 sw=4 ts=4 noexpandtab : */