Without this patch, the name of the RunTarget is passed to the install script; for the enclosed test, meson setup (incorrectly) succeeds, but installation fails.pull/9565/head
parent
36c390e08e
commit
9a8c2d23f1
4 changed files with 28 additions and 5 deletions
@ -0,0 +1,4 @@ |
||||
project('trivial test', 'c') |
||||
exe = executable('trivialprog', 'trivial.c') |
||||
runt = run_target('invalid', command: ['echo', 'run_target']) |
||||
meson.add_install_script(exe, runt) |
@ -0,0 +1,8 @@ |
||||
{ |
||||
"stdout": [ |
||||
{ |
||||
"line": "test cases/failing/117 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\"" |
||||
} |
||||
] |
||||
} |
||||
|
@ -0,0 +1,11 @@ |
||||
#include<stdio.h> |
||||
|
||||
int main(int argc, char **argv) { |
||||
FILE *fp = fopen(argv[1], "r"); |
||||
if (fp == NULL) { |
||||
perror("fopen"); |
||||
return 1; |
||||
} else { |
||||
return 0; |
||||
} |
||||
} |
Loading…
Reference in new issue