Skip to content

Commit 3ebb81e

Browse files
author
Nathan Hawes
authored
Merge pull request #30841 from nathawes/fix-cross-import-doc-support-test
[test] Fix DocSupport test that should have passed -enable-cross-import-overlays
2 parents 9053413 + 6e3f512 commit 3ebb81e

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

test/SourceKit/DocSupport/doc_swift_module_cross_import.swift

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
// REQUIRES: rdar61346236
21
// RUN: %empty-directory(%t.mod)
32
// RUN: %empty-directory(%t.mod/mcp)
43

@@ -9,7 +8,7 @@
98

109
// Set up a cross-import module with doc comments and check the synthesized comments don't appear in the fully_annotated_decl entries.
1110
//
12-
// RUN: %target-swift-frontend -emit-module-path %t.mod/_OtherCAdditions.swiftmodule -emit-module-doc-path %t.mod/_OtherCAdditions.swiftdoc -module-cache-path %t.mod/mcp -I %S/../Inputs/CrossImport %S/../Inputs/CrossImport/_OtherCAdditions.swift -parse-as-library
11+
// RUN: %target-swift-frontend -emit-module-path %t.mod/_OtherCAdditions.swiftmodule -emit-module-doc-path %t.mod/_OtherCAdditions.swiftdoc -module-cache-path %t.mod/mcp -I %S/../Inputs/CrossImport %S/../Inputs/CrossImport/_OtherCAdditions.swift -parse-as-library -enable-cross-import-overlays
1312
// RUN: %sourcekitd-test -req=doc-info -module Other -- -target %target-triple -I %S/../Inputs/CrossImport -I %t.mod/ -module-cache-path %t.mod/mcp > %t.response
1413
// RUN: diff --strip-trailing-cr -u %s.Other.response %t.response
1514

test/SourceKit/DocSupport/doc_swift_module_cross_import.swift.Other.response

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@ func fromOther()
55

66
// MARK: - C Additions
77

8-
import A
98
import B
109
import C
10+
import A
1111

1212
// Available when C is imported with Other
1313
func filtered()

0 commit comments

Comments
 (0)