Fix new VFS tests that use modules to pass the target consistently

Prevent mismatch between compiling and loading the module.
This commit is contained in:
Ben Langmuir
2019-06-27 10:45:55 -07:00
committed by Marc Rasi
parent 3b652bfeb5
commit 2e268a512d
7 changed files with 35 additions and 35 deletions

View File

@@ -10,4 +10,4 @@ func foo(
// RUN: %empty-directory(%t)
// RUN: %target-swift-frontend -emit-parseable-module-interface-path %t/SwiftModule.swiftinterface -module-name SwiftModule -emit-module -o /dev/null %S/../Inputs/vfs/SwiftModule/SwiftModule.swift
// RUN: %sourcekitd-test -req=complete -pos=6:31 -vfs-files=/target_file1.swift=%s,/SwiftModule/SwiftModule.swiftinterface=%t/SwiftModule.swiftinterface /target_file1.swift -pass-as-sourcetext -- /target_file1.swift -I /SwiftModule | %FileCheck %s
// RUN: %sourcekitd-test -req=complete -pos=6:31 -vfs-files=/target_file1.swift=%s,/SwiftModule/SwiftModule.swiftinterface=%t/SwiftModule.swiftinterface /target_file1.swift -pass-as-sourcetext -- /target_file1.swift -I /SwiftModule -target %target-triple | %FileCheck %s