[test] Work around glib <= 2.30 API
This commit is contained in:
parent
22989c5ffc
commit
23db8d5c92
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user