r344364 - [python] [tests] Remove cdb lookup failure test
Michal Gorny via cfe-commits
cfe-commits at lists.llvm.org
Fri Oct 12 09:55:39 PDT 2018
Author: mgorny
Date: Fri Oct 12 09:55:39 2018
New Revision: 344364
URL: http://llvm.org/viewvc/llvm-project?rev=344364&view=rev
Log:
[python] [tests] Remove cdb lookup failure test
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
Modified:
cfe/trunk/bindings/python/tests/cindex/test_cdb.py
Modified: cfe/trunk/bindings/python/tests/cindex/test_cdb.py
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/bindings/python/tests/cindex/test_cdb.py?rev=344364&r1=344363&r2=344364&view=diff
==============================================================================
--- cfe/trunk/bindings/python/tests/cindex/test_cdb.py (original)
+++ cfe/trunk/bindings/python/tests/cindex/test_cdb.py Fri Oct 12 09:55:39 2018
@@ -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)
More information about the cfe-commits
mailing list