mirror of
https://gitlab.freedesktop.org/wayland/wayland.git
synced 2026-04-05 07:15:46 -04:00
tests: C++ compilation test
This test includes one of wayland headers, which produced error with C++ compiler. C compiler can't be used for this test, because it issues only a warning[1] and only when wayland headers are not installed in system headers path (/usr/include). [1] wayland-server-protocol.h:201:2: warning: implicit declaration of function ‘wl_resource_post_event’ [daniels: Merged in Marek's follow-up to check for a C++ compiler.] Signed-off-by: Mariusz Ceier <mceier+wayland@gmail.com> Signed-off-by: Marek Chalupa <mchqwerty@gmail.com> Reviewed-by: Daniel Stone <daniels@collabora.com>
This commit is contained in:
parent
9386e2be27
commit
e3dc9a7af6
3 changed files with 25 additions and 0 deletions
|
|
@ -130,6 +130,10 @@ TESTS = \
|
|||
resources-test \
|
||||
message-test
|
||||
|
||||
if ENABLE_CPP_TEST
|
||||
TESTS += cpp-compile-test
|
||||
endif
|
||||
|
||||
check_PROGRAMS = \
|
||||
$(TESTS) \
|
||||
exec-fd-leak-checker
|
||||
|
|
@ -181,6 +185,10 @@ resources_test_LDADD = libtest-runner.la
|
|||
message_test_SOURCES = tests/message-test.c
|
||||
message_test_LDADD = libtest-runner.la
|
||||
|
||||
if ENABLE_CPP_TEST
|
||||
cpp_compile_test_SOURCES = tests/cpp-compile-test.cpp
|
||||
endif
|
||||
|
||||
fixed_benchmark_SOURCES = tests/fixed-benchmark.c
|
||||
fixed_benchmark_LDADD = libtest-runner.la
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue