Skip to content

Commit b8e3c5d

Browse files
committed
only use nonfatal assertions for GLib that actually supports it
Fixes tests on Debian 7 and RHEL 6
1 parent d85f867 commit b8e3c5d

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

tests/fe-common/core/test-formats.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,9 @@ int main(int argc, char **argv)
3131
g_free(name);
3232
}
3333

34+
#if GLIB_CHECK_VERSION(2,38,0)
3435
g_test_set_nonfatal_assertions();
36+
#endif
3537
return g_test_run();
3638
}
3739

tests/irc/core/test-irc.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,9 @@ int main(int argc, char **argv)
197197
g_free(name);
198198
}
199199

200+
#if GLIB_CHECK_VERSION(2,38,0)
200201
g_test_set_nonfatal_assertions();
202+
#endif
201203
return g_test_run();
202204
}
203205

0 commit comments

Comments
 (0)