From: Behdad Esfahbod Date: Tue, 12 Jul 2011 16:02:26 +0000 (-0400) Subject: [test] Work around glib <= 2.30 API X-Git-Tag: 2.0_alpha~7^2~72 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=23db8d5c92c96a34c716b68e1aa6819c5a20477a;p=apps%2Fhome%2Fvideo-player.git [test] Work around glib <= 2.30 API --- diff --git a/test/hb-test.h b/test/hb-test.h index 09008aa..de9a79a 100644 --- a/test/hb-test.h +++ b/test/hb-test.h @@ -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)