Add a new test for depfile generation with spaces

This checks that dependency generation is correct even when the sources
and outputs have spaces in them.
This commit is contained in:
Nirbheek Chauhan 2016-12-29 08:54:20 +05:30
parent f024114c29
commit 2f5943d34d
2 changed files with 15 additions and 0 deletions

View File

@ -0,0 +1,3 @@
int main(int argc, char *argv[]) {
return 0;
}

View File

@ -0,0 +1,12 @@
project('dep file gen', 'c')
cc_id = meson.get_compiler('c').get_id()
if cc_id == 'intel'
# ICC does not escape spaces in paths in the dependency file, so Ninja
# (correctly) thinks that the rule has multiple outputs and errors out:
# 'depfile has multiple output paths'
error('MESON_SKIP_TEST: Skipping test with Intel compiler because it generates broken dependency files')
endif
e = executable('main file', 'main .c')
test('test it', e)