summaryrefslogtreecommitdiff
path: root/src/systemd
diff options
context:
space:
mode:
authorYu Watanabe <watanabe.yu+github@gmail.com>2018-10-30 02:12:13 +0900
committerYu Watanabe <watanabe.yu+github@gmail.com>2018-11-03 18:00:47 +0900
commit76281c640821b0a165b79d75ada78e43c51cf031 (patch)
treec99afe6613da1da4b64bb6aca2a2f60d7c3d6b4d /src/systemd
parent3cc306e667759ae2d4f6dc0753b7dac574c4c586 (diff)
downloadsystemd-76281c640821b0a165b79d75ada78e43c51cf031.tar.gz
test: also run compile tests for libudev.h
Diffstat (limited to 'src/systemd')
-rw-r--r--src/systemd/meson.build6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/systemd/meson.build b/src/systemd/meson.build
index dde0aaf781..e0c967efc5 100644
--- a/src/systemd/meson.build
+++ b/src/systemd/meson.build
@@ -65,11 +65,11 @@ if cxx.found()
endif
endif
-foreach header : _systemd_headers + _not_installed_headers
+foreach header : _systemd_headers + _not_installed_headers + ['../libudev/libudev.h']
foreach opt : opts
- name = ''.join([header, ':'] + opt)
+ name = ''.join(['cc-', header.split('/')[-1], ':'] + opt)
if want_tests != 'false'
- test('cc-' + name,
+ test(name,
check_compilation_sh,
args : cc.cmd_array() + ['-c', '-x'] + opt +
['-Werror', '-include',