[Spice-commits] server/tests

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Sun Jul 8 15:25:56 UTC 2018


 server/tests/replay.c           |    1 +
 server/tests/test-glib-compat.h |    9 +++++++++
 2 files changed, 10 insertions(+)

New commits:
commit 014e4d72639ad019cf9440f18c9991bc26f66116
Author: Christophe Fergeau <cfergeau at redhat.com>
Date:   Fri Jul 6 15:03:32 2018 +0200

    tests: Add G_PID_FORMAT to glib compat header
    
    G_PID_FORMAT was only added in glib 2.50.
    
    Signed-off-by: Christophe Fergeau <cfergeau at redhat.com>
    Acked-by: Eduardo Lima (Etrunko) <etrunko at redhat.com>

diff --git a/server/tests/replay.c b/server/tests/replay.c
index 40fd10b6..bd9420b8 100644
--- a/server/tests/replay.c
+++ b/server/tests/replay.c
@@ -37,6 +37,7 @@
 
 #include <spice/macros.h>
 #include "test-display-base.h"
+#include "test-glib-compat.h"
 #include <common/log.h>
 
 static SpiceCoreInterface *core;
diff --git a/server/tests/test-glib-compat.h b/server/tests/test-glib-compat.h
index bb0f601c..eef07494 100644
--- a/server/tests/test-glib-compat.h
+++ b/server/tests/test-glib-compat.h
@@ -68,4 +68,13 @@ g_test_assert_expected_messages_internal_no_warnings(const char *domain,
 #define g_assert_false(cond) g_assert(!(cond))
 #endif
 
+/* Added in glib 2.50 */
+#ifndef G_PID_FORMAT
+#ifdef G_OS_WIN32
+#define G_PID_FORMAT "i"
+#else
+#define G_PID_FORMAT "p"
+#endif /* G_OS_WIN32 */
+#endif /* G_PID_FORMAT */
+
 #endif // TEST_GLIB_COMPAT_H_


More information about the Spice-commits mailing list