]> granicus.if.org Git - clang/commitdiff
[python] [tests] Remove cdb lookup failure test
authorMichal Gorny <mgorny@gentoo.org>
Fri, 12 Oct 2018 16:55:39 +0000 (16:55 +0000)
committerMichal Gorny <mgorny@gentoo.org>
Fri, 12 Oct 2018 16:55:39 +0000 (16:55 +0000)
Remove the test checking for compilation db lookup failure.
Since r342228, JSONCompilationDatabasePlugin infers compile commands for
missing files, therefore making the lookup always succeed.

Differential Revision: https://reviews.llvm.org/D53202

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@344364 91177308-0d34-0410-b5e6-96231b3b80d8

bindings/python/tests/cindex/test_cdb.py

index 25ee6d3b982dca1d37a2eb7ead0fb8ad9566b2b3..5908239c46c864541c9b69c99ddd8040b29cf15c 100644 (file)
@@ -31,11 +31,6 @@ class TestCDB(unittest.TestCase):
         """Check we can load a compilation database"""
         cdb = CompilationDatabase.fromDirectory(kInputsDir)
 
-    def test_lookup_fail(self):
-        """Check file lookup failure"""
-        cdb = CompilationDatabase.fromDirectory(kInputsDir)
-        self.assertIsNone(cdb.getCompileCommands('file_do_not_exist.cpp'))
-
     def test_lookup_succeed(self):
         """Check we get some results if the file exists in the db"""
         cdb = CompilationDatabase.fromDirectory(kInputsDir)