File: 31-ignore-order-of-goto-locations.patch

package info (click to toggle)
ycmd 0%2B20240823%2Bgit8b61f19%2Bds-4
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 8,040 kB
  • sloc: python: 44,018; cpp: 6,138; java: 486; sh: 378; cs: 207; javascript: 150; ansic: 82; makefile: 45; xml: 18; objc: 10
file content (22 lines) | stat: -rw-r--r-- 913 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
Description: Ignore order of Goto locations return by clangd
 Upstream has a fixed order of locations and this seems to work on all
 Debian architectures autopkgtest is run on except s390x for some reason.
 .
 For upstream the order is important in so far as order is an important
 user interface, but for us it is less of an issue and likely to trigger
 with different clang versions, so we go the easy route of ignoring the
 order in this test.
Author: David Kalnischkies <donkult@debian.org>
Forwarded: not-needed

--- a/ycmd/tests/clangd/subcommands_test.py
+++ b/ycmd/tests/clangd/subcommands_test.py
@@ -70,7 +70,7 @@
   if isinstance( response, list ):
     expect = {
       'response': requests.codes.ok,
-      'data': contains_exactly( *[
+      'data': contains_inanyorder( *[
         LocationMatcher(
           PathToTestFile( folder, os.path.normpath( location[ 0 ] ) ),
           location[ 1 ],