diff options
author | Simon McVittie <simon.mcvittie@collabora.co.uk> | 2015-02-26 17:11:19 +0000 |
---|---|---|
committer | Simon McVittie <simon.mcvittie@collabora.co.uk> | 2015-04-16 13:06:07 +0100 |
commit | a6b68598c42d34383d24cf424e0fe740a0bfffb2 (patch) | |
tree | 6fade8b8f09271e759ae53e38053e648f5cb1a1d /test/fdpass.c | |
parent | b7e56c18a961fc9717fd399077b2d5a1126669cb (diff) | |
download | dbus-a6b68598c42d34383d24cf424e0fe740a0bfffb2.tar.gz |
tests: provide g_test_skip() emulation for older GLib
We don't hard-depend on a new enough GLib to have g_test_skip();
if our GLib is older, fake it using g_test_message() and degrade to
reporting it as a pass rather than a skip.
Reviewed-by: Philip Withnall <philip.withnall@collabora.co.uk>
Bug: https://bugs.freedesktop.org/show_bug.cgi?id=89846
Diffstat (limited to 'test/fdpass.c')
-rw-r--r-- | test/fdpass.c | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/test/fdpass.c b/test/fdpass.c index 9a9d0ed6..a706c927 100644 --- a/test/fdpass.c +++ b/test/fdpass.c @@ -93,14 +93,6 @@ typedef struct { int fd_before; } Fixture; -#if !GLIB_CHECK_VERSION (2, 38, 0) -#define g_test_skip(s) my_test_skip (s) -static inline void my_test_skip (const gchar *s) -{ - g_message ("SKIP: %s", s); -} -#endif - #ifdef HAVE_UNIX_FD_PASSING static void oom (const gchar *doing) G_GNUC_NORETURN; |