mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
Tests importing AppKit have a tendency to be flaky when they share a module cache with other builds using a different set of framework search flags. Make sure they use a local cache, otherwise the compiler can reuse incompatible cached modules. Alternatively, we could align all builds using the same cache to have exactly the same framework search paths or enable explicit module builds. I picked the module cache as it's the most reliable solution in the short and long term. rdar://142949965
16 lines
469 B
Swift
16 lines
469 B
Swift
// RUN: %empty-directory(%t/cache)
|
|
// RUN: %target-run-simple-swift(-module-cache-path %t/cache) | %FileCheck %s
|
|
// REQUIRES: executable_test
|
|
|
|
// REQUIRES: objc_interop
|
|
// UNSUPPORTED: OS=tvos
|
|
|
|
// Requires swift-version 4
|
|
// UNSUPPORTED: swift_test_mode_optimize_none_with_implicit_dynamic
|
|
|
|
import MapKit
|
|
|
|
let rect = MKMapRectMake(1.0, 2.0, 3.0, 4.0)
|
|
// CHECK: {{^}}1.0 2.0 3.0 4.0{{$}}
|
|
print("\(rect.origin.x) \(rect.origin.y) \(rect.size.width) \(rect.size.height)")
|