[PATCH] D39838: [clang] [python] [tests] Update priority values in code completion test

Michał Górny via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Thu Nov 9 05:29:57 PST 2017


mgorny created this revision.

The priority for destructors and operators was reduced in https://reviews.llvm.org/rL314019.
Adjust the values used in the test appropriately to fix the test
failure.


Repository:
  rL LLVM

https://reviews.llvm.org/D39838

Files:
  bindings/python/tests/cindex/test_code_completion.py


Index: bindings/python/tests/cindex/test_code_completion.py
===================================================================
--- bindings/python/tests/cindex/test_code_completion.py
+++ bindings/python/tests/cindex/test_code_completion.py
@@ -68,8 +68,8 @@
     cr = tu.codeComplete('fake.cpp', 13, 5, unsaved_files=files)
     expected = [
         "{'P', TypedText} | {'::', Text} || Priority: 75 || Availability: Available || Brief comment: None",
-        "{'P &', ResultType} | {'operator=', TypedText} | {'(', LeftParen} | {'const P &', Placeholder} | {')', RightParen} || Priority: 34 || Availability: Available || Brief comment: None",
+        "{'P &', ResultType} | {'operator=', TypedText} | {'(', LeftParen} | {'const P &', Placeholder} | {')', RightParen} || Priority: 79 || Availability: Available || Brief comment: None",
         "{'int', ResultType} | {'member', TypedText} || Priority: 35 || Availability: NotAccessible || Brief comment: None",
-        "{'void', ResultType} | {'~P', TypedText} | {'(', LeftParen} | {')', RightParen} || Priority: 34 || Availability: Available || Brief comment: None"
+        "{'void', ResultType} | {'~P', TypedText} | {'(', LeftParen} | {')', RightParen} || Priority: 79 || Availability: Available || Brief comment: None"
     ]
     check_completion_results(cr, expected)


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D39838.122227.patch
Type: text/x-patch
Size: 1331 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20171109/3e645bcf/attachment.bin>


More information about the cfe-commits mailing list