diff options
author | Jussi Pakkanen <jpakkane@gmail.com> | 2018-07-31 19:22:24 +0300 |
---|---|---|
committer | Jussi Pakkanen <jpakkane@gmail.com> | 2018-07-31 19:22:24 +0300 |
commit | 17bfbb99e5897ac759aca42d3ee375ebb33bd087 (patch) | |
tree | 8df2a3f7cbfcca9c30df15404f0227dfe0107705 /test cases/failing/52 slashname | |
parent | 2bc0f56b21a6dd327a6907c5fe27885b05db49d5 (diff) | |
download | meson-17bfbb99e5897ac759aca42d3ee375ebb33bd087.zip meson-17bfbb99e5897ac759aca42d3ee375ebb33bd087.tar.gz meson-17bfbb99e5897ac759aca42d3ee375ebb33bd087.tar.bz2 |
Condense test dirs.
Diffstat (limited to 'test cases/failing/52 slashname')
-rw-r--r-- | test cases/failing/52 slashname/meson.build | 12 | ||||
-rw-r--r-- | test cases/failing/52 slashname/sub/meson.build | 2 | ||||
-rw-r--r-- | test cases/failing/52 slashname/sub/prog.c | 6 |
3 files changed, 20 insertions, 0 deletions
diff --git a/test cases/failing/52 slashname/meson.build b/test cases/failing/52 slashname/meson.build new file mode 100644 index 0000000..bba5301 --- /dev/null +++ b/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/test cases/failing/52 slashname/sub/meson.build b/test cases/failing/52 slashname/sub/meson.build new file mode 100644 index 0000000..e104890 --- /dev/null +++ b/test cases/failing/52 slashname/sub/meson.build @@ -0,0 +1,2 @@ +pf = files('prog.c') + diff --git a/test cases/failing/52 slashname/sub/prog.c b/test cases/failing/52 slashname/sub/prog.c new file mode 100644 index 0000000..722de0a --- /dev/null +++ b/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; +} |