diff options
author | ailin-nemui <ailin-nemui@users.noreply.github.com> | 2018-01-08 14:33:12 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-01-08 14:33:12 +0100 |
commit | 2e28606635495f903a3f24cdf1c248e60e802866 (patch) | |
tree | 7380a004d61fa7ec0d10771a89b8b52e21e880ad | |
parent | a6663c58d4364c371e82d718f0ed5460df6d8b36 (diff) | |
parent | b8e3c5d00e80a2bf24cfbb063e2e4916ef01147d (diff) | |
download | irssi-2e28606635495f903a3f24cdf1c248e60e802866.zip |
Merge pull request #806 from ailin-nemui/fix-tests-old-glib
only use nonfatal assertions for GLib that actually supports it
-rw-r--r-- | tests/fe-common/core/test-formats.c | 2 | ||||
-rw-r--r-- | tests/irc/core/test-irc.c | 2 |
2 files changed, 4 insertions, 0 deletions
diff --git a/tests/fe-common/core/test-formats.c b/tests/fe-common/core/test-formats.c index 9ef23fd6..08d706ac 100644 --- a/tests/fe-common/core/test-formats.c +++ b/tests/fe-common/core/test-formats.c @@ -31,7 +31,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(); } 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(); } |