meson: test: must also pass '-C' (--validate)

Otherwise it will try to _run_ the bar, which we don't want.
This commit is contained in:
Daniel Eklöf 2019-05-11 11:07:15 +02:00
parent 5eef162d39
commit 217e0d2052

View file

@ -2,8 +2,8 @@ test('is-executable', f00bar, args: ['--version'])
pwd = meson.current_source_dir() pwd = meson.current_source_dir()
# Configuratoin validation tests # Configuration validation tests
test('no-config', f00bar, args: ['-c', 'xyz'], should_fail: true) test('no-config', f00bar, args: ['-C', '-c', 'xyz'], should_fail: true)
test('config-isnt-file', f00bar, args: ['-c', '.'], should_fail: true) test('config-isnt-file', f00bar, args: ['-C', '-c', '.'], should_fail: true)
test('config-no-bar', f00bar, args: ['-c', join_paths(pwd, 'no-bar.yml')], test('config-no-bar', f00bar, args: ['-C', '-c', join_paths(pwd, 'no-bar.yml')],
should_fail: true) should_fail: true)