From: Yong Bakos Date: Thu, 19 May 2016 16:27:29 +0000 (-0600) Subject: tests: Check for client/server-core.h inclusion X-Git-Tag: 1.10.93~3 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=9ca9f8e4b27f51a4d8b1b0823a93f15cf76540aa;p=platform%2Fupstream%2Fwayland.git tests: Check for client/server-core.h inclusion The purpose of wayland-*-protocol-core.h is to mimc the wayland-*-protocol.h generated by scanner --include-core-only. The only difference being what wayland-*-protocol.h should include. Add an include check in the headers-protocol-core-test, to be sure that a wayland-*-protocol.h generated with the --include-core-only option properly includes wayland-*-core.h. Signed-off-by: Yong Bakos Reviewed-by: Bryce Harrington --- diff --git a/tests/headers-protocol-core-test.c b/tests/headers-protocol-core-test.c index aabcb0b..5c2baf3 100644 --- a/tests/headers-protocol-core-test.c +++ b/tests/headers-protocol-core-test.c @@ -26,6 +26,13 @@ #include "wayland-client-protocol-core.h" #include "wayland-server-protocol-core.h" +#ifndef WAYLAND_CLIENT_CORE_H +#error including wayland-client-protocol-core.h did not include wayland-client-core.h! +#endif +#ifndef WAYLAND_SERVER_CORE_H +#error including wayland-server-protocol-core.h did not include wayland-server-core.h! +#endif + #ifdef WAYLAND_CLIENT_H #error including wayland-client-protocol-core.h included wayland-client.h! #endif