diff options
author | Jussi Pakkanen <jpakkane@gmail.com> | 2016-01-02 20:34:06 +0200 |
---|---|---|
committer | Jussi Pakkanen <jpakkane@gmail.com> | 2016-01-02 20:34:06 +0200 |
commit | 6830f3e14711b7c75c51edf635b5f97a7047f3e2 (patch) | |
tree | b65f5a3e85a4ec5a458cee3fc187093f964f0cb1 /test cases | |
parent | f1bf87ec8a765801b8aec97d64e97b578817430b (diff) | |
download | meson-6830f3e14711b7c75c51edf635b5f97a7047f3e2.zip meson-6830f3e14711b7c75c51edf635b5f97a7047f3e2.tar.gz meson-6830f3e14711b7c75c51edf635b5f97a7047f3e2.tar.bz2 |
Forbid backslashes on compiler command lines. It is unfortunately the only reliable way.
Diffstat (limited to 'test cases')
-rw-r--r-- | test cases/common/104 stringdef/meson.build | 3 | ||||
-rw-r--r-- | test cases/common/104 stringdef/stringdef.c | 10 | ||||
-rw-r--r-- | test cases/failing/24 backslash/comparer.c (renamed from test cases/common/104 backslash/comparer.c) | 0 | ||||
-rw-r--r-- | test cases/failing/24 backslash/meson.build (renamed from test cases/common/104 backslash/meson.build) | 0 |
4 files changed, 13 insertions, 0 deletions
diff --git a/test cases/common/104 stringdef/meson.build b/test cases/common/104 stringdef/meson.build new file mode 100644 index 0000000..3f9170e --- /dev/null +++ b/test cases/common/104 stringdef/meson.build @@ -0,0 +1,3 @@ +project('stringdef', 'c') + +test('stringdef', executable('stringdef', 'stringdef.c', c_args : '-DFOO="bar"')) diff --git a/test cases/common/104 stringdef/stringdef.c b/test cases/common/104 stringdef/stringdef.c new file mode 100644 index 0000000..69ea656 --- /dev/null +++ b/test cases/common/104 stringdef/stringdef.c @@ -0,0 +1,10 @@ +#include<stdio.h> +#include<string.h> + +int main(int argc, char **argv) { + if(strcmp(FOO, "bar")) { + printf("FOO is misquoted: %s\n", FOO); + return 1; + } + return 0; +} diff --git a/test cases/common/104 backslash/comparer.c b/test cases/failing/24 backslash/comparer.c index f562f5e..f562f5e 100644 --- a/test cases/common/104 backslash/comparer.c +++ b/test cases/failing/24 backslash/comparer.c diff --git a/test cases/common/104 backslash/meson.build b/test cases/failing/24 backslash/meson.build index dba891e..dba891e 100644 --- a/test cases/common/104 backslash/meson.build +++ b/test cases/failing/24 backslash/meson.build |