Skip to content

Commit bd15da6

Browse files
authored
Merge pull request #75871 from kavon/fix-test-133393259
Test: fix convenience_init_peer_delegation.swift
2 parents ccfd7da + c88858d commit bd15da6

File tree

1 file changed

+13
-4
lines changed

1 file changed

+13
-4
lines changed

test/Interpreter/convenience_init_peer_delegation.swift

+13-4
Original file line numberDiff line numberDiff line change
@@ -1,34 +1,43 @@
11
// RUN: %empty-directory(%t)
22
//
3-
// RUN: %target-build-swift %s -Xfrontend -disable-objc-attr-requires-foundation-module -o %t/main
3+
// RUN: %target-build-swift %s -o %t/main
44
// RUN: %target-codesign %t/main
55
// RUN: %target-run %t/main | %FileCheck %s
66

77
// RUN: %empty-directory(%t)
88
//
99
// RUN: sed -e 's/required//g' < %s > %t/without_required.swift
10-
// RUN: %target-build-swift %t/without_required.swift -Xfrontend -disable-objc-attr-requires-foundation-module -o %t/without_required
10+
// RUN: %target-build-swift %t/without_required.swift -o %t/without_required
1111
// RUN: %target-codesign %t/without_required
1212
// RUN: %target-run %t/without_required | %FileCheck %s
1313

1414
// RUN: %empty-directory(%t)
1515
//
16-
// RUN: %target-build-swift %s -Xfrontend -disable-objc-attr-requires-foundation-module -o %t/main -swift-version 5
16+
// RUN: %target-build-swift %s -o %t/main -swift-version 5
1717
// RUN: %target-codesign %t/main
1818
// RUN: %target-run %t/main | %FileCheck %s
1919

2020
// RUN: %empty-directory(%t)
2121
//
2222
// RUN: sed -e 's/required//g' < %s > %t/without_required.swift
23-
// RUN: %target-build-swift %t/without_required.swift -Xfrontend -disable-objc-attr-requires-foundation-module -o %t/without_required -swift-version 5
23+
// RUN: %target-build-swift %t/without_required.swift -o %t/without_required -swift-version 5
2424
// RUN: %target-codesign %t/without_required
2525
// RUN: %target-run %t/without_required | %FileCheck %s
2626

2727
// REQUIRES: executable_test
2828
// REQUIRES: objc_interop
29+
// REQUIRES: foundation
2930
// XFAIL: CPU=arm64e
3031

32+
// Because of the use of 'sed' in this test.
33+
// REQUIRES: shell
34+
35+
// rdar://133393259 fails in optimized tests.
36+
// UNSUPPORTED: swift_test_mode_optimize
37+
// UNSUPPORTED: swift_test_mode_optimize_size
38+
3139
import Darwin
40+
import Foundation
3241

3342
class Base {
3443
init(swift: ()) {

0 commit comments

Comments
 (0)