aboutsummaryrefslogtreecommitdiff
path: root/run_unittests.py
diff options
context:
space:
mode:
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):
'''