[test] Work around glib <= 2.30 API

This commit is contained in:
Behdad Esfahbod 2011-07-12 12:02:26 -04:00
parent 22989c5ffc
commit 23db8d5c92
1 changed files with 4 additions and 0 deletions

View File

@ -156,6 +156,10 @@ typedef void (*hb_test_fixture_func_t) (gpointer fixture,
gconstpointer user_data);
#endif
#if !GLIB_CHECK_VERSION(2,30,0)
#define g_test_fail() g_error("Test failed")
#endif
static inline void
hb_test_add_func (const char *test_path,
hb_test_func_t test_func)