Skip to content

Commit 7c6c212

Browse files
authored
Merge pull request #36293 from CodaFi/silicon-pentanitride
[5.4] Apple Silicon Test Corrections
2 parents 7787340 + 0e228d9 commit 7c6c212

12 files changed

+24
-7
lines changed

test/ClangImporter/availability_macosx_canonical_versions.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// RUN: %target-swift-frontend(mock-sdk: %clang-importer-sdk) -typecheck -verify -I %S/Inputs/custom-modules -target x86_64-apple-macosx10.15 %s
1+
// RUN: %target-swift-frontend(mock-sdk: %clang-importer-sdk) -typecheck -verify -I %S/Inputs/custom-modules -target %target-cpu-apple-macosx10.15 %s
22

33
// REQUIRES: OS=macosx
44

test/ClangImporter/availability_macosx_canonical_versions_appext.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// RUN: %target-swift-frontend(mock-sdk: %clang-importer-sdk) -typecheck -verify -I %S/Inputs/custom-modules -target x86_64-apple-macosx10.15 -application-extension %s
1+
// RUN: %target-swift-frontend(mock-sdk: %clang-importer-sdk) -typecheck -verify -I %S/Inputs/custom-modules -target %target-cpu-apple-macosx10.15 -application-extension %s
22

33
// REQUIRES: OS=macosx
44

test/IRGen/fixed_class_initialization.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
// RUN: %target-swift-frontend -target x86_64-apple-macosx10.14 -module-name main -emit-ir %s | %FileCheck --check-prefix=CHECK --check-prefix=NO_OPT_SELF %s
33

44
// REQUIRES: objc_interop
5-
// REQUIRES: OS=macosx
5+
// REQUIRES: OS=macosx && CPU=x86_64
66

77
class C {
88
var x: Int = 0

test/IRGen/macosx-sdk-version.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// RUN: %target-swift-frontend %s -target x86_64-apple-macosx10.14 -target-sdk-version 10.15.4 -emit-ir | %FileCheck %s
1+
// RUN: %target-swift-frontend %s -target %target-cpu-apple-macosx10.14 -target-sdk-version 10.15.4 -emit-ir | %FileCheck %s
22

33
// REQUIRES: OS=macosx
44

test/IRGen/opaque_result_type_availability.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
// RUN: %target-swift-frontend -enable-implicit-dynamic -target x86_64-apple-macosx10.9 -Onone -emit-ir %s | %FileCheck --check-prefix=MAYBE-AVAILABLE %s
1+
// RUN: %target-swift-frontend -enable-implicit-dynamic -target %target-cpu-apple-macosx10.9 -Onone -emit-ir %s | %FileCheck --check-prefix=MAYBE-AVAILABLE %s
22
// RUN: %target-swift-frontend -enable-implicit-dynamic -target %target-cpu-apple-macosx10.15 -Onone -emit-ir %s | %FileCheck --check-prefix=ALWAYS-AVAILABLE %s
3-
// REQUIRES: OS=macosx
3+
// REQUIRES: OS=macosx && CPU=x86_64
44

55
protocol P {}
66
extension Int: P {}

test/Sanitizers/tsan-emptyarraystorage.swift

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@
66
// REQUIRES: foundation
77
// UNSUPPORTED: OS=tvos
88

9+
// rdar://problem/75006869
10+
// XFAIL: OS=macosx && CPU=arm64
11+
912
import Foundation
1013

1114
let sem = DispatchSemaphore(value: 0)

test/Sanitizers/tsan-libdispatch.swift

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,9 @@
99
// don't support TSan.
1010
// UNSUPPORTED: remote_run
1111

12+
// rdar://problem/75006869
13+
// XFAIL: OS=macosx && CPU=arm64
14+
1215
// Test ThreadSanitizer execution end-to-end with libdispatch.
1316

1417
import Dispatch

test/Sanitizers/tsan-norace-block-release.swift

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@
88
// don't support TSan.
99
// UNSUPPORTED: remote_run
1010

11+
// rdar://problem/75006869
12+
// UNSUPPORTED: OS=macosx && CPU=arm64
13+
1114
// Test that we do not report a race on block release operation.
1215
import Dispatch
1316
#if canImport(Darwin)

test/Sanitizers/tsan-norace-deinit-run-time.swift

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@
88
// don't support TSan.
99
// UNSUPPORTED: remote_run
1010

11+
// rdar://problem/75006869
12+
// XFAIL: OS=macosx && CPU=arm64
13+
1114
// Test that we do not report a race on deinit; the synchronization is guaranteed by runtime.
1215
import Dispatch
1316
#if canImport(Darwin)

test/Sanitizers/tsan-static-exclusivity.swift

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
// don't support TSan.
66
// UNSUPPORTED: remote_run
77

8-
98
struct OtherStruct {
109
mutating
1110
func mutableTakingClosure(_ c: () -> Void) { }

test/Sanitizers/tsan.swift

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@
66
// UNSUPPORTED: OS=tvos
77
// UNSUPPORTED: CPU=powerpc64le
88

9+
// rdar://problem/75006869
10+
// XFAIL: OS=macosx && CPU=arm64
11+
912
// FIXME: This should be covered by "tsan_runtime"; older versions of Apple OSs
1013
// don't support TSan.
1114
// UNSUPPORTED: remote_run

test/stdlib/Reflection_objc.swift

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,9 @@
99
// REQUIRES: executable_test
1010
// REQUIRES: objc_interop
1111

12+
// rdar://problem/75006694
13+
// XFAIL: OS=macosx && CPU=arm64
14+
1215
//
1316
// DO NOT add more tests to this file. Add them to test/1_stdlib/Runtime.swift.
1417
//

0 commit comments

Comments
 (0)