summaryrefslogtreecommitdiff
path: root/tests/irc
diff options
context:
space:
mode:
authorailin-nemui <ailin-nemui@users.noreply.github.com>2018-01-08 13:33:40 +0100
committerailin-nemui <ailin-nemui@users.noreply.github.com>2018-01-08 13:33:40 +0100
commitb8e3c5d00e80a2bf24cfbb063e2e4916ef01147d (patch)
tree0b941407073e26d04b6166432a9f8367bda6fe91 /tests/irc
parentd85f86726115a2f80d878254dd9773470d6dd9c1 (diff)
downloadirssi-b8e3c5d00e80a2bf24cfbb063e2e4916ef01147d.zip
only use nonfatal assertions for GLib that actually supports it
Fixes tests on Debian 7 and RHEL 6
Diffstat (limited to 'tests/irc')
-rw-r--r--tests/irc/core/test-irc.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/irc/core/test-irc.c b/tests/irc/core/test-irc.c
index c96956df..3eaf7020 100644
--- a/tests/irc/core/test-irc.c
+++ b/tests/irc/core/test-irc.c
@@ -197,7 +197,9 @@ int main(int argc, char **argv)
g_free(name);
}
+#if GLIB_CHECK_VERSION(2,38,0)
g_test_set_nonfatal_assertions();
+#endif
return g_test_run();
}