aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJussi Pakkanen <jpakkane@gmail.com>2022-04-23 18:12:44 +0300
committerJussi Pakkanen <jpakkane@gmail.com>2022-04-23 23:56:31 +0300
commit9f9c7905bf64278ca7fc6f582b3799aebd252da6 (patch)
treeb944cbc2eeea400096e457bbb38ba135b4b3afd3
parenta2079939de2d1d271e5ea7f23c3656a73e325728 (diff)
downloadmeson-9f9c7905bf64278ca7fc6f582b3799aebd252da6.zip
meson-9f9c7905bf64278ca7fc6f582b3799aebd252da6.tar.gz
meson-9f9c7905bf64278ca7fc6f582b3799aebd252da6.tar.bz2
Do not use 'echo' as it is not available on plain cmd.exe
-rw-r--r--test cases/failing/115 run_target in test/meson.build5
-rw-r--r--test cases/failing/115 run_target in test/test.json2
-rw-r--r--test cases/failing/116 run_target in add_install_script/meson.build5
-rw-r--r--test cases/failing/116 run_target in add_install_script/test.json2
4 files changed, 10 insertions, 4 deletions
diff --git a/test cases/failing/115 run_target in test/meson.build b/test cases/failing/115 run_target in test/meson.build
index db7cb30..1d448ec 100644
--- a/test cases/failing/115 run_target in test/meson.build
+++ b/test cases/failing/115 run_target in test/meson.build
@@ -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)
diff --git a/test cases/failing/115 run_target in test/test.json b/test cases/failing/115 run_target in test/test.json
index fce0c47..6eddb7c 100644
--- a/test cases/failing/115 run_target in test/test.json
+++ b/test cases/failing/115 run_target in test/test.json
@@ -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]"
}
]
}
diff --git a/test cases/failing/116 run_target in add_install_script/meson.build b/test cases/failing/116 run_target in add_install_script/meson.build
index 9d37a39..f8ae3a1 100644
--- a/test cases/failing/116 run_target in add_install_script/meson.build
+++ b/test cases/failing/116 run_target in add_install_script/meson.build
@@ -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)
diff --git a/test cases/failing/116 run_target in add_install_script/test.json b/test cases/failing/116 run_target in add_install_script/test.json
index 621d510..03027e4 100644
--- a/test cases/failing/116 run_target in add_install_script/test.json
+++ b/test cases/failing/116 run_target in add_install_script/test.json
@@ -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\""
}
]
}