Skip to content

Fix dependency scanner test-case to use explicit imports #32167

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jun 4, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions test/ScanDependencies/Inputs/Swift/A.swiftinterface
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
// swift-interface-format-version: 1.0
// swift-module-flags: -module-name A
import Swift
@_exported import A
public func overlayFuncA() { }

2 changes: 1 addition & 1 deletion test/ScanDependencies/Inputs/Swift/G.swiftinterface
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// swift-module-flags: -module-name G -swift-version 5

#if swift(>=5.0)

import Swift
@_exported import G
public func overlayFuncG() { }

Expand Down
10 changes: 8 additions & 2 deletions test/ScanDependencies/module_deps.swift
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,10 @@ import G
// CHECK-LABEL: "modulePath": "G.swiftmodule"
// CHECK: "directDependencies"
// CHECK-NEXT: {
// CHECK-NEXT: "clang": "G"
// CHECK-NEXT: "swift": "Swift"
// CHECK-NEXT: },
// CHECK-NEXT: {
// CHECK-NEXT: "clang": "G"
// CHECK-NEXT: }
// CHECK-NEXT: ],
// CHECK-NEXT: "details": {
Expand Down Expand Up @@ -153,7 +156,10 @@ import G

// CHECK: directDependencies
// CHECK-NEXT: {
// CHECK-NEXT: "clang": "A"
// CHECK-NEXT: "swift": "Swift"
// CHECK-NEXT: },
// CHECK-NEXT: {
// CHECK-NEXT: "clang": "A"
// CHECK-NEXT: }

/// --------Clang module B
Expand Down