Skip to content

Commit adb58e3

Browse files
committed
Swift: Make file checking in tests more strict
With Swift 6.1 the extractor will start to extract files outside of the test directory. These files and their elements we do not want to see in our tests. Test forgotten in #19344
1 parent a211998 commit adb58e3

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

  • swift/ql/test/library-tests/elements/location
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import swift
22

33
from Location l
4+
where exists(l.getFile().getRelativePath()) or l instanceof UnknownLocation
45
select l

0 commit comments

Comments
 (0)