[llvm-bugs] [Bug 38417] New: clang: python bindings, test_code_complete_availability fails

via llvm-bugs llvm-bugs at lists.llvm.org
Thu Aug 2 01:17:57 PDT 2018


https://bugs.llvm.org/show_bug.cgi?id=38417

            Bug ID: 38417
           Summary: clang: python bindings,
                    test_code_complete_availability fails
           Product: clang
           Version: 7.0
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: -New Bugs
          Assignee: unassignedclangbugs at nondot.org
          Reporter: mgorny at gentoo.org
                CC: llvm-bugs at lists.llvm.org
            Blocks: 38406

Created attachment 20633
  --> https://bugs.llvm.org/attachment.cgi?id=20633&action=edit
dev-python:clang-python-7.0.9999:20180802-074944.log

This is a regression since 6.0*.

======================================================================
FAIL: test_code_complete_availability
(tests.cindex.test_code_completion.TestCodeCompletion)
----------------------------------------------------------------------
Traceback (most recent call last):
  File
"/var/tmp/portage/dev-python/clang-python-7.0.9999/work/clang-python-7.0.9999/bindings/python/tests/cindex/test_code_completion.py",
line 70, in test_code_complete_availability
    self.check_completion_results(cr, expected)
  File
"/var/tmp/portage/dev-python/clang-python-7.0.9999/work/clang-python-7.0.9999/bindings/python/tests/cindex/test_code_completion.py",
line 14, in check_completion_results
    self.assertIn(c, completions)
AssertionError: "{'const', TypedText} || Priority: 40 || Availability:
Available || Brief comment: None" not found in ["{'P', TypedText} || Priority:
50 || Availability: Available || Brief comment: None", "{'Q', TypedText} ||
Priority: 50 || Availability: Available || Brief comment: None", "{'namespace',
TypedText} | {' ', HorizontalSpace} | {'name', Placeholder} | {'=', Equal} |
{'namespace', Placeholder} || Priority: 40 || Availability: Available || Brief
comment: None", "{'using', TypedText} | {' ', HorizontalSpace} | {'namespace',
Text} | {' ', HorizontalSpace} | {'identifier', Placeholder} || Priority: 40 ||
Availability: Available || Brief comment: None", "{'asm', TypedText} | {'(',
LeftParen} | {'string-literal', Placeholder} | {')', RightParen} || Priority:
40 || Availability: Available || Brief comment: None", "{'typedef', TypedText}
| {' ', HorizontalSpace} | {'type', Placeholder} | {' ', HorizontalSpace} |
{'name', Placeholder} || Priority: 40 || Availability: Available || Brief
comment: None", "{'using', TypedText} | {' ', HorizontalSpace} | {'qualifier',
Placeholder} | {'::', Text} | {'name', Placeholder} || Priority: 40 ||
Availability: Available || Brief comment: None", "{'extern', TypedText} ||
Priority: 40 || Availability: Available || Brief comment: None", "{'static',
TypedText} || Priority: 40 || Availability: Available || Brief comment: None",
"{'inline', TypedText} || Priority: 40 || Availability: Available || Brief
comment: None", "{'short', TypedText} || Priority: 50 || Availability:
Available || Brief comment: None", "{'long', TypedText} || Priority: 50 ||
Availability: Available || Brief comment: None", "{'signed', TypedText} ||
Priority: 50 || Availability: Available || Brief comment: None", "{'unsigned',
TypedText} || Priority: 50 || Availability: Available || Brief comment: None",
"{'void', TypedText} || Priority: 50 || Availability: Available || Brief
comment: None", "{'char', TypedText} || Priority: 50 || Availability: Available
|| Brief comment: None", "{'int', TypedText} || Priority: 50 || Availability:
Available || Brief comment: None", "{'float', TypedText} || Priority: 50 ||
Availability: Available || Brief comment: None", "{'double', TypedText} ||
Priority: 50 || Availability: Available || Brief comment: None", "{'enum',
TypedText} || Priority: 50 || Availability: Available || Brief comment: None",
"{'struct', TypedText} || Priority: 50 || Availability: Available || Brief
comment: None", "{'union', TypedText} || Priority: 50 || Availability:
Available || Brief comment: None", "{'const', TypedText} || Priority: 50 ||
Availability: Available || Brief comment: None", "{'volatile', TypedText} ||
Priority: 50 || Availability: Available || Brief comment: None", "{'bool',
TypedText} || Priority: 50 || Availability: Available || Brief comment: None",
"{'class', TypedText} || Priority: 50 || Availability: Available || Brief
comment: None", "{'wchar_t', TypedText} || Priority: 50 || Availability:
Available || Brief comment: None", "{'typename', TypedText} | {' ',
HorizontalSpace} | {'qualifier', Placeholder} | {'::', Text} | {'name',
Placeholder} || Priority: 40 || Availability: Available || Brief comment:
None", "{'_Nonnull', TypedText} || Priority: 50 || Availability: Available ||
Brief comment: None", "{'_Null_unspecified', TypedText} || Priority: 50 ||
Availability: Available || Brief comment: None", "{'_Nullable', TypedText} ||
Priority: 50 || Availability: Available || Brief comment: None", "{'operator',
TypedText} || Priority: 40 || Availability: Available || Brief comment: None"]

----------------------------------------------------------------------
Ran 120 tests in 1.141s

FAILED (failures=1)


Referenced Bugs:

https://bugs.llvm.org/show_bug.cgi?id=38406
[Bug 38406] [meta] 7.0.0 Release Blockers
-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20180802/8b35ce36/attachment.html>


More information about the llvm-bugs mailing list