Skip to content

More backwards-deployment test fixes #19634

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 4 commits into from
Oct 1, 2018
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
4 changes: 4 additions & 0 deletions test/SILGen/tsan_instrumentation.swift
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
// RUN: %target-swift-emit-silgen -sanitize=thread %s | %FileCheck %s
// REQUIRES: tsan_runtime

// FIXME: This should be covered by "tsan_runtime"; older versions of Apple OSs
// don't support TSan.
// UNSUPPORTED: remote_run

func takesInout(_ p: inout Int) { }
func takesInout(_ p: inout MyStruct) { }

Expand Down
4 changes: 4 additions & 0 deletions test/Sanitizers/tsan-norace-block-release.swift
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@
// REQUIRES: objc_interop
// REQUIRES: tsan_runtime

// FIXME: This should be covered by "tsan_runtime"; older versions of Apple OSs
// don't support TSan.
// UNSUPPORTED: remote_run

// Test that we do not report a race on block release operation.
import Foundation

Expand Down
4 changes: 4 additions & 0 deletions test/Sanitizers/tsan-norace-deinit-run-time.swift
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@
// REQUIRES: objc_interop
// REQUIRES: tsan_runtime

// FIXME: This should be covered by "tsan_runtime"; older versions of Apple OSs
// don't support TSan.
// UNSUPPORTED: remote_run

// Test that we do not report a race on deinit; the synchronization is guaranteed by runtime.
import Foundation

Expand Down
4 changes: 4 additions & 0 deletions test/Sanitizers/tsan-static-exclusivity.swift
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
// RUN: %target-swift-frontend -enforce-exclusivity=checked -sanitize=thread -emit-sil -primary-file %s -o /dev/null -verify
// REQUIRES: tsan_runtime

// FIXME: This should be covered by "tsan_runtime"; older versions of Apple OSs
// don't support TSan.
// UNSUPPORTED: remote_run


struct OtherStruct {
mutating
Expand Down
4 changes: 4 additions & 0 deletions test/Sanitizers/tsan.swift
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@
// REQUIRES: tsan_runtime
// UNSUPPORTED: OS=tvos

// FIXME: This should be covered by "tsan_runtime"; older versions of Apple OSs
// don't support TSan.
// UNSUPPORTED: remote_run

// https://bugs.swift.org/browse/SR-6622
// XFAIL: linux

Expand Down
4 changes: 3 additions & 1 deletion test/stdlib/MapKit.swift
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,9 @@ func spansEqual(_ x: MKCoordinateSpan, _ y: MKCoordinateSpan)

if #available(tvOS 9.2, *) {
mapKit.test("NSValue bridging")
.skip(.iOSMinor(9, 3, reason: "<rdar://problem/41440036>")).code {
.xfail(.iOSMinor(9, 3, reason: "<rdar://problem/41440036>"))
.xfail(.osxMinorRange(10, 9...10, reason: "<rdar://problem/44866579>"))
.code {
expectBridgeToNSValue(CLLocationCoordinate2D(latitude: 17, longitude: 38),
nsValueInitializer: { NSValue(mkCoordinate: $0) },
nsValueGetter: { $0.mkCoordinateValue },
Expand Down
3 changes: 2 additions & 1 deletion test/stdlib/SwiftObjectNSObject.swift
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@
// RUN: %target-clang %S/Inputs/SwiftObjectNSObject/SwiftObjectNSObject.m -c -o %t/SwiftObjectNSObject.o -g
// RUN: %target-build-swift %s -I %S/Inputs/SwiftObjectNSObject/ -Xlinker %t/SwiftObjectNSObject.o -o %t/SwiftObjectNSObject
// RUN: %target-codesign %t/SwiftObjectNSObject
// RUN: %target-run %t/SwiftObjectNSObject 2>&1 | %FileCheck %s
// RUN: %target-run %t/SwiftObjectNSObject 2> %t/log.txt
// RUN: %FileCheck %s < %t/log.txt
// REQUIRES: executable_test

// REQUIRES: objc_interop
Expand Down
4 changes: 3 additions & 1 deletion test/stdlib/TestLocale.swift
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,9 @@ class TestLocale : TestLocaleSuper {

expectEqual(".", locale.decimalSeparator)
expectEqual(",", locale.groupingSeparator)
expectEqual("HK$", locale.currencySymbol)
if #available(macOS 10.11, *) {
expectEqual("HK$", locale.currencySymbol)
}
expectEqual("HKD", locale.currencyCode)

expectTrue(Locale.availableIdentifiers.count > 0)
Expand Down