From 3075cbc6fb383024b87563611021f9fb712182fd Mon Sep 17 00:00:00 2001 From: ailin-nemui Date: Tue, 24 Apr 2018 14:00:30 +0200 Subject: Fix test compilation on old glib e.g. Debian 7 --- tests/irc/flood/test-796.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'tests') diff --git a/tests/irc/flood/test-796.c b/tests/irc/flood/test-796.c index 2e4affa0..0c98509b 100644 --- a/tests/irc/flood/test-796.c +++ b/tests/irc/flood/test-796.c @@ -165,7 +165,9 @@ int main(int argc, char **argv) server_destroy_flood_set_up, test_server_destroy_flood, server_destroy_flood_tear_down); +#if GLIB_CHECK_VERSION(2,38,0) g_test_set_nonfatal_assertions(); +#endif core_preinit(*argv); irssi_gui = IRSSI_GUI_NONE; -- cgit v1.2.3