only use nonfatal assertions for GLib that actually supports it

Fixes tests on Debian 7 and RHEL 6
This commit is contained in:
ailin-nemui 2018-01-08 13:33:40 +01:00
commit b8e3c5d00e
2 changed files with 4 additions and 0 deletions

View file

@ -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();
}