[APIJSON] Impromve tests to it doesn't rely on SDK content

Remove the dependency of APIJSON tests on SDK to improve stability and
speed.

rdar://89448415
This commit is contained in:
Steven Wu
2022-03-03 13:47:11 -08:00
parent 9664560855
commit db97c0d187
3 changed files with 4 additions and 4 deletions

View File

@@ -1,6 +1,6 @@
// REQUIRES: objc_interop, OS=macosx
// RUN: %empty-directory(%t)
// RUN: %target-swift-frontend %s -typecheck -emit-module-interface-path %t/MyModule.swiftinterface -enable-library-evolution -module-name MyModule -swift-version 5
// RUN: %target-swift-frontend(mock-sdk: %clang-importer-sdk-nosource -I %t) %s -typecheck -emit-module-interface-path %t/MyModule.swiftinterface -enable-library-evolution -module-name MyModule -swift-version 5
// RUN: %target-swift-api-extract -o - -pretty-print %t/MyModule.swiftinterface -module-name MyModule -module-cache-path %t | %FileCheck %s
import Foundation