test: also run compile tests for libudev.h

This commit is contained in:
Yu Watanabe
2018-11-03 18:00:47 +09:00
parent 3cc306e667
commit 76281c6408
+3 -3
View File
@@ -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',