From c20eddeb385974d6f46494e71ab63d4493df119b Mon Sep 17 00:00:00 2001 From: ailin-nemui Date: Sun, 26 Nov 2017 16:19:31 +0100 Subject: add glib testing TAP utilities --- tests/irc/core/Makefile.am | 5 +++-- tests/irc/core/test-irc.c | 1 + 2 files changed, 4 insertions(+), 2 deletions(-) (limited to 'tests') diff --git a/tests/irc/core/Makefile.am b/tests/irc/core/Makefile.am index fff2a246..b5345067 100644 --- a/tests/irc/core/Makefile.am +++ b/tests/irc/core/Makefile.am @@ -1,11 +1,12 @@ +include $(top_srcdir)/utils/glib-tap.mk + AM_CPPFLAGS = \ -I$(top_srcdir)/src \ -I$(top_srcdir)/src/core \ -DSYSCONFDIR=\""$(sysconfdir)"\" \ $(GLIB_CFLAGS) -TESTS = test-irc -check_PROGRAMS = test-irc +test_programs = test-irc test_irc_CPPFLAGS = \ -I$(top_srcdir)/src/irc/core \ diff --git a/tests/irc/core/test-irc.c b/tests/irc/core/test-irc.c index 7e85c9ba..4c62e6a7 100644 --- a/tests/irc/core/test-irc.c +++ b/tests/irc/core/test-irc.c @@ -32,6 +32,7 @@ int main(int argc, char **argv) g_test_add_func("/test/event_get_param", test_event_get_param); g_test_add_func("/test/event_get_params", test_event_get_params); + g_test_set_nonfatal_assertions(); return g_test_run(); } -- cgit v1.2.3