]> git.ipfire.org Git - thirdparty/systemd.git/commit - meson.build
tests,meson: add test-bus-vtable, compiled as C and C++
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Sat, 13 May 2017 17:23:28 +0000 (13:23 -0400)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Sat, 13 May 2017 19:50:44 +0000 (15:50 -0400)
commit94e2523b702c4490950017171902ea6bc8f776cb
tree881609e3c55ac5ee9345663954e404acc7708744
parent3bf47e73929dbc9361574af1df84e437901a5538
tests,meson: add test-bus-vtable, compiled as C and C++

This test is mostly a compilation test that checks that various defines in
sd-bus-vtable.h are valid C++. The code is executed, but the results are not
checked (apart from sd-bus functions not returning an error). test-bus-objects
contains pretty extensive tests for this functionality.

The C++ version is only added to meson, since it's simpler there.
Because of the .cc extension, meson will compile the executable with c++.

This test is necessary to properly check the macros in sd-bus-vtable.h. Just
running the headers through g++ is not enough, because the macros are not
exercised.

Follow-up for #5941.
.gitignore
Makefile.am
meson.build
src/libsystemd/sd-bus/test-bus-vtable-cc.cc [new symlink]
src/libsystemd/sd-bus/test-bus-vtable.c [new file with mode: 0644]
src/test/meson.build