Skip to content

Commit 1e2d056

Browse files
authored
Merge pull request #77252 from tshortli/fix-requires-macosx-mistakes
Tests: Fix tests with incorrect `REQUIRES=macosx` lines
2 parents d5d0001 + 315aabe commit 1e2d056

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

test/ClangImporter/availability_platform_categories.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// RUN: %target-swift-frontend -typecheck %s -import-objc-header %S/Inputs/availability_platform_categories.h
22

3-
// REQUIRES: OS=macos
3+
// REQUIRES: OS=macosx
44

55
// Test when a function is associated to an Objective-C category with the
66
// wrong unavailability. rdar://problem/53956555

test/SILOptimizer/moveonly_addresschecker_tsan.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// RUN: %target-swift-emit-sil -sanitize=thread -sil-verify-all -verify -enable-experimental-feature NoImplicitCopy -enable-experimental-feature MoveOnlyClasses %s -Xllvm -sil-print-final-ossa-module | %FileCheck %s
22
// RUN: %target-swift-emit-sil -sanitize=thread -O -sil-verify-all -verify -enable-experimental-feature NoImplicitCopy -enable-experimental-feature MoveOnlyClasses %s
3-
// REQUIRES: OS=macOS
3+
// REQUIRES: OS=macosx
44

55
// This file contains tests that used to crash due to verifier errors. It must
66
// be separate from moveonly_addresschecker_diagnostics since when we fail on
@@ -27,9 +27,9 @@ func testAssertLikeUseDifferentBits() {
2727
var s: [Int] = []
2828
var currentPosition = 5
2929

30-
// CHECK-LABEL: sil private @$s23moveonly_addresschecker30testAssertLikeUseDifferentBitsyyF1SL_V6resume2atySi_tF : $@convention(method) (Int, @inout S) -> () {
30+
// CHECK-LABEL: sil private @$s28moveonly_addresschecker_tsan30testAssertLikeUseDifferentBitsyyF1SL_V6resume2atySi_tF : $@convention(method) (Int, @inout S) -> () {
3131
// CHECK-NOT: destroy_addr
32-
// CHECK: } // end sil function '$s23moveonly_addresschecker30testAssertLikeUseDifferentBitsyyF1SL_V6resume2atySi_tF'
32+
// CHECK: } // end sil function '$s28moveonly_addresschecker_tsan30testAssertLikeUseDifferentBitsyyF1SL_V6resume2atySi_tF'
3333
mutating func resume(at index: Int) {
3434
assert(index >= currentPosition)
3535
currentPosition = index

0 commit comments

Comments
 (0)