diff options
author | Angelos Mouzakitis <a.mouzakitis@virtualopensystems.com> | 2023-10-10 14:33:42 +0000 |
---|---|---|
committer | Angelos Mouzakitis <a.mouzakitis@virtualopensystems.com> | 2023-10-10 14:33:42 +0000 |
commit | af1a266670d040d2f4083ff309d732d648afba2a (patch) | |
tree | 2fc46203448ddcc6f81546d379abfaeb323575e9 /meson/test cases/failing/52 slashname | |
parent | e02cda008591317b1625707ff8e115a4841aa889 (diff) |
Change-Id: Iaf8d18082d3991dec7c0ebbea540f092188eb4ec
Diffstat (limited to 'meson/test cases/failing/52 slashname')
4 files changed, 27 insertions, 0 deletions
diff --git a/meson/test cases/failing/52 slashname/meson.build b/meson/test cases/failing/52 slashname/meson.build new file mode 100644 index 000000000..bba5301bf --- /dev/null +++ b/meson/test cases/failing/52 slashname/meson.build @@ -0,0 +1,12 @@ +project('slashname', 'c') + +# Traverse this subdir so the corresponding dir +# is created inside the build dir. +subdir('sub') + +# Try to create an executable that would go in the "sub" dir +# inside the build dir. This is prohibited. +executable('sub/prog', pf) + +error('Re-enable me once slash in name is finally prohibited.') + diff --git a/meson/test cases/failing/52 slashname/sub/meson.build b/meson/test cases/failing/52 slashname/sub/meson.build new file mode 100644 index 000000000..e10489001 --- /dev/null +++ b/meson/test cases/failing/52 slashname/sub/meson.build @@ -0,0 +1,2 @@ +pf = files('prog.c') + diff --git a/meson/test cases/failing/52 slashname/sub/prog.c b/meson/test cases/failing/52 slashname/sub/prog.c new file mode 100644 index 000000000..722de0abe --- /dev/null +++ b/meson/test cases/failing/52 slashname/sub/prog.c @@ -0,0 +1,6 @@ +#include<stdio.h> + +int main(int argc, char **argv) { + printf("I should not be run ever.\n"); + return 1; +} diff --git a/meson/test cases/failing/52 slashname/test.json b/meson/test cases/failing/52 slashname/test.json new file mode 100644 index 000000000..180400ae7 --- /dev/null +++ b/meson/test cases/failing/52 slashname/test.json @@ -0,0 +1,7 @@ +{ + "stdout": [ + { + "line": "test cases/failing/52 slashname/meson.build:11:0: ERROR: Problem encountered: Re-enable me once slash in name is finally prohibited." + } + ] +} |