diff options
author | Giulio Camuffo <giuliocamuffo@gmail.com> | 2015-05-21 20:43:13 +0300 |
---|---|---|
committer | Bryce Harrington <bryce@osg.samsung.com> | 2015-05-21 16:00:31 -0700 |
commit | 1fab2e7ba95a548129abf117f66e21c5a633091a (patch) | |
tree | 24f5e39e2832358e003f936e65df1932db90800c /tests/headers-protocol-core-test.c | |
parent | 12cab2c4dfd4634e8979f78cec855a14091ce9d9 (diff) |
tests: add an headers test
This test checks that the protocol and library headers include only what
they are supposed to include. That is, that the core headers do not
include the protocol headers and that the core protocol headers do not
include the non core library headers.
The build process now generates core protocol headers, but they are only
used in the test and don't get installed.
Reviewed-by: Bryce Harrington <bryce@osg.samsung.com>
Diffstat (limited to 'tests/headers-protocol-core-test.c')
-rw-r--r-- | tests/headers-protocol-core-test.c | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/tests/headers-protocol-core-test.c b/tests/headers-protocol-core-test.c new file mode 100644 index 0000000..60a8a62 --- /dev/null +++ b/tests/headers-protocol-core-test.c @@ -0,0 +1,31 @@ +/* + * Copyright © 2015 Giulio Camuffo + * + * Permission to use, copy, modify, distribute, and sell this software and its + * documentation for any purpose is hereby granted without fee, provided that + * the above copyright notice appear in all copies and that both that copyright + * notice and this permission notice appear in supporting documentation, and + * that the name of the copyright holders not be used in advertising or + * publicity pertaining to distribution of the software without specific, + * written prior permission. The copyright holders make no representations + * about the suitability of this software for any purpose. It is provided "as + * is" without express or implied warranty. + * + * THE COPYRIGHT HOLDERS DISCLAIM ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, + * INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO + * EVENT SHALL THE COPYRIGHT HOLDERS BE LIABLE FOR ANY SPECIAL, INDIRECT OR + * CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, + * DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER + * TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE + * OF THIS SOFTWARE. + */ + +#include "wayland-client-protocol-core.h" +#include "wayland-server-protocol-core.h" + +#ifdef WAYLAND_CLIENT_H +#error including wayland-client-protocol-core.h included wayland-client.h! +#endif +#ifdef WAYLAND_SERVER_H +#error including wayland-server-protocol-core.h included wayland-server.h! +#endif |