Skip to content

Commit 92147f8

Browse files
committed
[Tests] NFC: Mark tests affected by solver-perf revert as slow
1 parent 4a61d8f commit 92147f8

File tree

5 files changed

+10
-8
lines changed

5 files changed

+10
-8
lines changed

validation-test/Sema/type_checker_perf/fast/swift_package_index_1.swift renamed to validation-test/Sema/type_checker_perf/slow/swift_package_index_1.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// RUN: %target-swift-frontend -typecheck %s -solver-scope-threshold=1000
1+
// RUN: %target-typecheck-verify-swift -solver-scope-threshold=1000
22
// REQUIRES: tools-release,no_asan
33

44
public class Cookie {
@@ -13,7 +13,7 @@ public class Cookie {
1313
private let fixedByteSize: Int32 = 56
1414

1515
var totalByteCount: Int32 {
16-
return fixedByteSize +
16+
return fixedByteSize + // expected-error {{the compiler is unable to type-check this expression in reasonable time}}
1717
(port != nil ? 2 : 0) +
1818
Int32(comment?.utf8.count ?? 0) +
1919
Int32(commentURL?.utf8.count ?? 0) +

validation-test/Sema/type_checker_perf/fast/swift_package_index_2.swift.gyb renamed to validation-test/Sema/type_checker_perf/slow/swift_package_index_2.swift.gyb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
// RUN: %scale-test --begin 1 --end 10 --step 1 --select NumConstraintScopes %s
22
// REQUIRES: tools-release,no_asan,asserts
33

4+
// REQUIRES: rdar135382075
5+
46
var v: [String] = []
57
var vv: [String]? = nil
68

validation-test/Sema/type_checker_perf/fast/swift_package_index_3.swift renamed to validation-test/Sema/type_checker_perf/slow/swift_package_index_3.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// RUN: %target-swift-frontend -typecheck %s -solver-scope-threshold=50000
1+
// RUN: %target-typecheck-verify-swift -solver-scope-threshold=50000
22
// REQUIRES: tools-release,no_asan
33

44
extension String {
@@ -9,7 +9,7 @@ extension String {
99
func getProperties(
1010
from ics: String
1111
) -> [(name: String, value: String)] {
12-
return ics
12+
return ics // expected-error {{the compiler is unable to type-check this expression in reasonable time}}
1313
.replacingOccurrences(of: "\r\n ", with: "")
1414
.components(separatedBy: "\r\n")
1515
.map { $0.split(separator: ":", maxSplits: 1, omittingEmptySubsequences: true) }

validation-test/Sema/type_checker_perf/fast/swift_package_index_4.swift renamed to validation-test/Sema/type_checker_perf/slow/swift_package_index_4.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// RUN: %target-swift-frontend -typecheck %s -solver-scope-threshold=60000
1+
// RUN: %target-typecheck-verify-swift -solver-scope-threshold=60000
22
// REQUIRES: tools-release,no_asan
33

44
protocol ArgumentProtocol {}
@@ -47,7 +47,7 @@ struct Options {
4747

4848
static func evaluate(_ mode: CommandMode) -> Result<Options, ConcreteError> {
4949
let defaultBuildDirectory = ""
50-
return create
50+
return create // expected-error {{the compiler is unable to type-check this expression in reasonable time}}
5151
<*> mode <| Option(key: "", defaultValue: nil, usage: "")
5252
<*> mode <| Option(key: "", defaultValue: nil, usage: "")
5353
<*> mode <| Option(key: "", defaultValue: FileManager.default.currentDirectoryPath, usage: "")

validation-test/Sema/type_checker_perf/fast/swift_package_index_5.swift renamed to validation-test/Sema/type_checker_perf/slow/swift_package_index_5.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
// RUN: %target-swift-frontend -typecheck %s -solver-scope-threshold=1000 -swift-version 5
1+
// RUN: %target-typecheck-verify-swift -solver-scope-threshold=1000 -swift-version 5
22
// REQUIRES: tools-release,no_asan
33

44
func g<T>(_: T) throws {
5-
let _: T? =
5+
let _: T? = //expected-error {{the compiler is unable to type-check this expression in reasonable time}}
66
(try? f() as? T) ??
77
(try? f() as? T) ??
88
(try? f() as? T) ??

0 commit comments

Comments
 (0)