summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorMarc-André Lureau <marcandre.lureau@gmail.com>2016-03-15 12:36:33 +0100
committerMarc-André Lureau <marcandre.lureau@gmail.com>2016-03-15 17:11:18 +0100
commit3c6b4ae867802ca050ed904ad80be8bffe40b1c3 (patch)
treee4efba21d027287e2d38228d724918ed4bac75af /tests
parentf9a1aad85fcc76dd76c454b51fbce5e07c9b145f (diff)
build-sys: fix 'Only <spice-client.h> can be included directly' warning
Tests should be allowed to include directly private headers. Set __SPICE_CLIENT_H_INSIDE__ where necessary or include spice-client.h where possible. Signed-off-by: Marc-André Lureau <marcandre.lureau@gmail.com> Acked-by: Fabiano Fidêncio <fidencio@redhat.com>
Diffstat (limited to 'tests')
-rw-r--r--tests/session.c4
-rw-r--r--tests/util.c1
2 files changed, 2 insertions, 3 deletions
diff --git a/tests/session.c b/tests/session.c
index feee3db..d065b60 100644
--- a/tests/session.c
+++ b/tests/session.c
@@ -1,6 +1,4 @@
-#include <glib.h>
-
-#include "spice-session.h"
+#include <spice-client.h>
static void test_session_uri(void)
{
diff --git a/tests/util.c b/tests/util.c
index b9b9535..dcc9770 100644
--- a/tests/util.c
+++ b/tests/util.c
@@ -3,6 +3,7 @@
#include <string.h>
#include <stdlib.h>
+#define __SPICE_CLIENT_H_INSIDE__
#include "spice-util-priv.h"
enum {