diff options
author | Jussi Pakkanen <jpakkane@gmail.com> | 2021-03-24 17:18:03 +0200 |
---|---|---|
committer | Jussi Pakkanen <jpakkane@gmail.com> | 2021-03-28 21:52:39 +0300 |
commit | 8e2f2d8d7e75378cc86650117883558472ac395e (patch) | |
tree | fb990774f2ba23ead09b558b1108ac5d3c7f149d /run_unittests.py | |
parent | 268a78f0f473c1b5193e8b44a067030b74a6559d (diff) | |
download | meson-implicitcustom.tar.gz |
Do not add custom target dir automatically when implicit false.implicitcustom
Diffstat (limited to 'run_unittests.py')
-rwxr-xr-x | run_unittests.py | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/run_unittests.py b/run_unittests.py index 0888a9752..fd75c8c9c 100755 --- a/run_unittests.py +++ b/run_unittests.py @@ -5616,6 +5616,23 @@ class AllPlatformTests(BasePlatformTests): self.assertEqual(0, output.count('File reformatted:')) self.build('clang-format-check') + def test_custom_target_implicit_include(self): + testdir = os.path.join(self.unit_test_dir, '94 custominc') + self.init(testdir) + self.build() + compdb = self.get_compdb() + matches = 0 + for c in compdb: + if 'prog.c' in c['file']: + self.assertNotIn('easytogrepfor', c['command']) + matches += 1 + self.assertEqual(matches, 1) + matches = 0 + for c in compdb: + if 'prog2.c' in c['file']: + self.assertIn('easytogrepfor', c['command']) + matches += 1 + self.assertEqual(matches, 1) class FailureTests(BasePlatformTests): ''' |