Do not use 'echo' as it is not available on plain cmd.exe

pull/10307/head
Jussi Pakkanen 3 years ago
parent a2079939de
commit 9f9c7905bf
  1. 5
      test cases/failing/115 run_target in test/meson.build
  2. 2
      test cases/failing/115 run_target in test/test.json
  3. 5
      test cases/failing/116 run_target in add_install_script/meson.build
  4. 2
      test cases/failing/116 run_target in add_install_script/test.json

@ -1,4 +1,7 @@
project('trivial test', 'c')
py_inst = import('python').find_installation()
exe = executable('trivialprog', 'trivial.c')
runt = run_target('invalid', command: ['echo', 'run_target'])
runt = run_target('invalid', command: [py_inst, '--version'])
test('runtest', exe, args: runt)

@ -1,7 +1,7 @@
{
"stdout": [
{
"line": "test cases/failing/115 run_target in test/meson.build:4:0: ERROR: test keyword argument 'args' was of type array[RunTarget] but should have been array[str | File | BuildTarget | CustomTarget | CustomTargetIndex]"
"line": "test cases/failing/115 run_target in test/meson.build:7:0: ERROR: test keyword argument 'args' was of type array[RunTarget] but should have been array[str | File | BuildTarget | CustomTarget | CustomTargetIndex]"
}
]
}

@ -1,4 +1,7 @@
project('trivial test', 'c')
py_inst = import('python').find_installation()
exe = executable('trivialprog', 'trivial.c')
runt = run_target('invalid', command: ['echo', 'run_target'])
runt = run_target('invalid', command: [py_inst, '--version'])
meson.add_install_script(exe, runt)

@ -1,7 +1,7 @@
{
"stdout": [
{
"line": "test cases/failing/116 run_target in add_install_script/meson.build:4:6: ERROR: meson.add_install_script argument 2 was of type \"RunTarget\" but should have been one of: \"str\", \"File\", \"BuildTarget\", \"CustomTarget\", \"CustomTargetIndex\", \"ExternalProgram\""
"line": "test cases/failing/116 run_target in add_install_script/meson.build:7:6: ERROR: meson.add_install_script argument 2 was of type \"RunTarget\" but should have been one of: \"str\", \"File\", \"BuildTarget\", \"CustomTarget\", \"CustomTargetIndex\", \"ExternalProgram\""
}
]
}

Loading…
Cancel
Save