diff options
author | Jussi Pakkanen <jpakkane@gmail.com> | 2017-06-18 03:49:48 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-06-18 03:49:48 +0300 |
commit | 3bc7651907e81cacb93f2f160b720dc97b958f05 (patch) | |
tree | db8cec8f6e8cb81db425c60cc89da21b1e641f00 /run_unittests.py | |
parent | 7c7dc0efde77e395babfe3a082a23e6ceaa31a87 (diff) | |
parent | 1c34707aeeedfe499bf2101253788cb41e970383 (diff) | |
download | meson-3bc7651907e81cacb93f2f160b720dc97b958f05.zip meson-3bc7651907e81cacb93f2f160b720dc97b958f05.tar.gz meson-3bc7651907e81cacb93f2f160b720dc97b958f05.tar.bz2 |
Merge pull request #1951 from mesonbuild/dedupfix
Preserve standalone -D arguments
Diffstat (limited to 'run_unittests.py')
-rwxr-xr-x | run_unittests.py | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/run_unittests.py b/run_unittests.py index 2cdd13a..61dc0ee 100755 --- a/run_unittests.py +++ b/run_unittests.py @@ -1221,6 +1221,15 @@ int main(int argc, char **argv) { for path in rpath.split(':'): self.assertTrue(path.startswith('$ORIGIN'), msg=(each, path)) + def test_dash_d_dedup(self): + testdir = os.path.join(self.unit_test_dir, '10 d dedup') + self.init(testdir) + cmd = self.get_compdb()[0]['command'] + self.assertTrue('-D FOO -D BAR' in cmd or + '"-D" "FOO" "-D" "BAR"' in cmd or + '/D FOO /D BAR' in cmd or + '"/D" "FOO" "/D" "BAR"' in cmd) + class FailureTests(BasePlatformTests): ''' |