mirror of
https://github.com/irssi/irssi.git
synced 2026-08-20 17:12:51 +02:00
Merge pull request #806 from ailin-nemui/fix-tests-old-glib
only use nonfatal assertions for GLib that actually supports it
(cherry picked from commit 2e28606635)
This commit is contained in:
parent
f83ba5a5bb
commit
1c285284ad
2 changed files with 4 additions and 0 deletions
|
|
@ -31,7 +31,9 @@ int main(int argc, char **argv)
|
||||||
g_free(name);
|
g_free(name);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#if GLIB_CHECK_VERSION(2,38,0)
|
||||||
g_test_set_nonfatal_assertions();
|
g_test_set_nonfatal_assertions();
|
||||||
|
#endif
|
||||||
return g_test_run();
|
return g_test_run();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -197,7 +197,9 @@ int main(int argc, char **argv)
|
||||||
g_free(name);
|
g_free(name);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#if GLIB_CHECK_VERSION(2,38,0)
|
||||||
g_test_set_nonfatal_assertions();
|
g_test_set_nonfatal_assertions();
|
||||||
|
#endif
|
||||||
return g_test_run();
|
return g_test_run();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue