Author: sylvestre Date: Thu Dec 13 09:39:02 2018 New Revision: 349064 URL: http://llvm.org/viewvc/llvm-project?rev=349064&view=rev Log: Try to update the test to fix the breakage With the new warning, we are showing one more output in the test.
Modified: cfe/trunk/bindings/python/tests/cindex/test_diagnostics.py Modified: cfe/trunk/bindings/python/tests/cindex/test_diagnostics.py URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/bindings/python/tests/cindex/test_diagnostics.py?rev=349064&r1=349063&r2=349064&view=diff ============================================================================== --- cfe/trunk/bindings/python/tests/cindex/test_diagnostics.py (original) +++ cfe/trunk/bindings/python/tests/cindex/test_diagnostics.py Thu Dec 13 09:39:02 2018 @@ -15,7 +15,7 @@ import unittest class TestDiagnostics(unittest.TestCase): def test_diagnostic_warning(self): tu = get_tu('int f0() {}\n') - self.assertEqual(len(tu.diagnostics), 1) + self.assertEqual(len(tu.diagnostics), 2) self.assertEqual(tu.diagnostics[0].severity, Diagnostic.Warning) self.assertEqual(tu.diagnostics[0].location.line, 1) self.assertEqual(tu.diagnostics[0].location.column, 11) _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits