aboutsummaryrefslogtreecommitdiff
path: root/run_unittests.py
diff options
context:
space:
mode:
authorJussi Pakkanen <jpakkane@gmail.com>2021-03-24 17:18:03 +0200
committerJussi Pakkanen <jpakkane@gmail.com>2021-03-29 18:57:34 +0300
commite80ff985fb1d4a0b840e5bf67a7e5dff08a21cdd (patch)
treed85c4738d0315073267bb97728b12ae4e9af39ac /run_unittests.py
parent448b11cb7fb41199880cc60d9fce040ea0cf5a3b (diff)
downloadmeson-e80ff985fb1d4a0b840e5bf67a7e5dff08a21cdd.zip
meson-e80ff985fb1d4a0b840e5bf67a7e5dff08a21cdd.tar.gz
meson-e80ff985fb1d4a0b840e5bf67a7e5dff08a21cdd.tar.bz2
Do not add custom target dir automatically when implicit false.
Diffstat (limited to 'run_unittests.py')
-rwxr-xr-xrun_unittests.py17
1 files changed, 17 insertions, 0 deletions
diff --git a/run_unittests.py b/run_unittests.py
index 0888a97..fd75c8c 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):
'''