mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
We need at least 7 samples for scale-test to produce a reliable result
One test was miscategorized as 'fast' because of this issue, but it would occasionally fail. It turns out it always fails once you ask for 7 points or more, so let's fix that and move it back to 'slow'. Fixes rdar://162597936.
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
// RUN: %scale-test --begin 1 --end 6 --step 1 --select NumLeafScopes %s
|
||||
// RUN: %scale-test --begin 1 --end 7 --step 1 --select NumLeafScopes %s
|
||||
// REQUIRES: asserts,no_asan
|
||||
|
||||
extension String {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// RUN: %scale-test --begin 1 --end 5 --step 1 --select NumLeafScopes %s -Xfrontend=-typecheck
|
||||
// RUN: %scale-test --begin 1 --end 7 --step 1 --select NumLeafScopes %s -Xfrontend=-typecheck
|
||||
// REQUIRES: asserts, no_asan
|
||||
|
||||
// https://github.com/swiftlang/swift/issues/46253
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// RUN: %scale-test --begin 1 --end 5 --step 1 --select NumLeafScopes %s -Xfrontend=-typecheck
|
||||
// RUN: %scale-test --begin 1 --end 7 --step 1 --select NumLeafScopes %s -Xfrontend=-typecheck
|
||||
// REQUIRES: asserts, no_asan
|
||||
|
||||
// https://github.com/swiftlang/swift/issues/46253
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// RUN: %scale-test --begin 1 --end 5 --step 1 --select NumLeafScopes %s -Xfrontend=-typecheck
|
||||
// RUN: %scale-test --begin 1 --end 7 --step 1 --select NumLeafScopes %s -Xfrontend=-typecheck
|
||||
// REQUIRES: asserts, no_asan
|
||||
|
||||
// https://github.com/swiftlang/swift/issues/47685
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// RUN: %scale-test --begin 1 --end 6 --step 1 --select NumLeafScopes %s -Xfrontend=-typecheck
|
||||
// RUN: %scale-test --begin 1 --end 7 --step 1 --select NumLeafScopes %s -Xfrontend=-typecheck
|
||||
// REQUIRES: asserts, no_asan
|
||||
|
||||
// https://github.com/swiftlang/swift/issues/47896
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// RUN: %scale-test --begin 1 --end 6 --step 1 --select NumLeafScopes %s
|
||||
// RUN: %scale-test --begin 1 --end 7 --step 1 --select NumLeafScopes %s
|
||||
// REQUIRES: asserts,no_asan
|
||||
|
||||
enum A {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// RUN: %scale-test --begin 1 --end 5 --step 1 --select NumLeafScopes %s -Xfrontend=-typecheck
|
||||
// RUN: %scale-test --begin 1 --end 7 --step 1 --select NumLeafScopes %s -Xfrontend=-typecheck
|
||||
// REQUIRES: asserts, no_asan
|
||||
|
||||
// https://github.com/swiftlang/swift/issues/48588
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// RUN: %scale-test --begin 1 --end 5 --step 1 --select NumLeafScopes %s -Xfrontend=-typecheck
|
||||
// RUN: %scale-test --begin 1 --end 7 --step 1 --select NumLeafScopes %s -Xfrontend=-typecheck
|
||||
// REQUIRES: asserts, no_asan
|
||||
|
||||
// https://github.com/swiftlang/swift/issues/49650
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// RUN: %scale-test --begin 1 --end 5 --step 1 --select NumLeafScopes %s -Xfrontend=-typecheck
|
||||
// RUN: %scale-test --begin 1 --end 7 --step 1 --select NumLeafScopes %s -Xfrontend=-typecheck
|
||||
// REQUIRES: asserts, no_asan
|
||||
|
||||
// https://github.com/swiftlang/swift/issues/50046
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// RUN: %scale-test --begin 1 --end 5 --step 1 --select NumLeafScopes %s -Xfrontend=-typecheck
|
||||
// RUN: %scale-test --begin 1 --end 7 --step 1 --select NumLeafScopes %s -Xfrontend=-typecheck
|
||||
// REQUIRES: asserts, no_asan
|
||||
|
||||
// https://github.com/swiftlang/swift/issues/52563
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// RUN: %scale-test --begin 1 --end 5 --step 1 --select NumLeafScopes %s -Xfrontend=-typecheck
|
||||
// RUN: %scale-test --begin 1 --end 7 --step 1 --select NumLeafScopes %s -Xfrontend=-typecheck
|
||||
// REQUIRES: asserts, no_asan
|
||||
|
||||
// https://github.com/swiftlang/swift/issues/53001
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// RUN: %scale-test --begin 1 --end 5 --step 1 --select NumLeafScopes %s -Xfrontend=-typecheck
|
||||
// RUN: %scale-test --begin 1 --end 7 --step 1 --select NumLeafScopes %s -Xfrontend=-typecheck
|
||||
// REQUIRES: asserts, no_asan
|
||||
|
||||
// https://github.com/swiftlang/swift/issues/54695
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// RUN: %scale-test --begin 1 --end 5 --step 1 --select NumConstraintScopes %s
|
||||
// RUN: %scale-test --begin 1 --end 7 --step 1 --select NumConstraintScopes %s
|
||||
// REQUIRES: asserts,no_asan
|
||||
|
||||
struct Root {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// RUN: %scale-test --begin 1 --end 5 --step 1 --select NumLeafScopes %s
|
||||
// RUN: %scale-test --begin 1 --end 7 --step 1 --select NumLeafScopes %s
|
||||
// REQUIRES: asserts,no_asan
|
||||
|
||||
typealias X = (Range<Int>, [Range<Int>])
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// RUN: %scale-test --begin 2 --end 6 --step 1 --select NumLeafScopes %s
|
||||
// RUN: %scale-test --begin 2 --end 7 --step 1 --select NumLeafScopes %s
|
||||
// REQUIRES: asserts,no_asan
|
||||
|
||||
let _ = (UInt8(0)
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// RUN: %scale-test --begin 2 --end 6 --step 1 --select NumLeafScopes %s
|
||||
// RUN: %scale-test --begin 2 --end 7 --step 1 --select NumLeafScopes %s
|
||||
// REQUIRES: asserts,no_asan
|
||||
|
||||
func overload(_ x: Int) -> Int { return x }
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// RUN: %scale-test --begin 2 --end 6 --step 1 --select NumLeafScopes %s
|
||||
// RUN: %scale-test --begin 2 --end 7 --step 1 --select NumLeafScopes %s
|
||||
// REQUIRES: asserts,no_asan
|
||||
|
||||
let tuple = (UInt8(0)
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// RUN: %scale-test --begin 2 --end 6 --step 1 --select NumLeafScopes %s
|
||||
// RUN: %scale-test --begin 2 --end 7 --step 1 --select NumLeafScopes %s
|
||||
// REQUIRES: asserts,no_asan
|
||||
|
||||
let tuple: (UInt8
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// RUN: %scale-test --begin 2 --end 6 --step 1 --select NumLeafScopes %s -Xfrontend=-verify
|
||||
// RUN: %scale-test --begin 2 --end 7 --step 1 --select NumLeafScopes %s -Xfrontend=-verify
|
||||
// REQUIRES: asserts,no_asan
|
||||
|
||||
weak var tuple = (UInt8(0) // expected-error {{'weak' may only be applied to}}
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// RUN: %scale-test --begin 1 --end 5 --step 1 --select NumLeafScopes %s
|
||||
// RUN: %scale-test --begin 1 --end 7 --step 1 --select NumLeafScopes %s
|
||||
// REQUIRES: asserts,no_asan
|
||||
|
||||
enum E: UInt {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// RUN: %scale-test --begin 1 --end 5 --step 1 --select NumLeafScopes %s
|
||||
// RUN: %scale-test --begin 1 --end 7 --step 1 --select NumLeafScopes %s
|
||||
// REQUIRES: asserts,no_asan
|
||||
|
||||
struct S {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// RUN: %scale-test --begin 2 --end 6 --step 1 --select NumLeafScopes %s
|
||||
// RUN: %scale-test --begin 2 --end 7 --step 1 --select NumLeafScopes %s
|
||||
// REQUIRES: asserts,no_asan
|
||||
|
||||
let _ = [
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// RUN: %scale-test --begin 1 --end 5 --step 1 --select NumLeafScopes %s
|
||||
// RUN: %scale-test --begin 1 --end 7 --step 1 --select NumLeafScopes %s
|
||||
// REQUIRES: asserts,no_asan
|
||||
|
||||
let _: [String : (Int, Int) -> Bool] = [
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// RUN: not %scale-test --begin 1 --end 5 --step 1 --select incrementScopeCounter %s
|
||||
// RUN: not %scale-test --begin 1 --end 7 --step 1 --select incrementScopeCounter %s
|
||||
// REQUIRES: OS=macosx
|
||||
// REQUIRES: asserts
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// RUN: %scale-test --begin 1 --end 5 --step 1 --select NumLeafScopes %s --expected-exit-code 1
|
||||
// RUN: %scale-test --begin 1 --end 7 --step 1 --select NumLeafScopes %s --expected-exit-code 1
|
||||
// REQUIRES: asserts,no_asan
|
||||
|
||||
% enum_cases = 3
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// RUN: %scale-test --begin 1 --end 5 --step 1 --select NumLeafScopes %s
|
||||
// RUN: %scale-test --begin 1 --end 7 --step 1 --select NumLeafScopes %s
|
||||
// REQUIRES: asserts,no_asan
|
||||
|
||||
struct rdar33511986 {
|
||||
|
||||
@@ -1,14 +0,0 @@
|
||||
// RUN: %scale-test --begin 1 --end 5 --step 1 --select NumLeafScopes %s
|
||||
|
||||
// REQUIRES: asserts,no_asan
|
||||
|
||||
// Flaky is some configurations including simulators
|
||||
// REQUIRES: OS=macosx
|
||||
// REQUIRES: CPU=arm64 || CPU=arm64e
|
||||
|
||||
func f(c: Float, a: SIMD2<Float>) -> SIMD2<Float> {
|
||||
return (c * a)
|
||||
%for i in range(1, N):
|
||||
+ (c * a)
|
||||
%end
|
||||
}
|
||||
@@ -1,4 +1,4 @@
|
||||
// RUN: %scale-test --invert-result --begin 1 --end 5 --step 1 --select NumLeafScopes %s -Xfrontend=-typecheck
|
||||
// RUN: %scale-test --invert-result --begin 1 --end 7 --step 1 --select NumLeafScopes %s -Xfrontend=-typecheck
|
||||
// REQUIRES: asserts, no_asan
|
||||
|
||||
struct Value: RandomAccessCollection, RangeReplaceableCollection {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// RUN: %scale-test --invert-result --begin 1 --end 5 --step 1 --select NumLeafScopes %s -Xfrontend=-typecheck
|
||||
// RUN: %scale-test --invert-result --begin 1 --end 7 --step 1 --select NumLeafScopes %s -Xfrontend=-typecheck
|
||||
// REQUIRES: asserts, no_asan
|
||||
|
||||
func slow() {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// RUN: %scale-test --invert-result --begin 1 --end 5 --step 1 --select NumLeafScopes %s -Xfrontend=-typecheck
|
||||
// RUN: %scale-test --invert-result --begin 1 --end 7 --step 1 --select NumLeafScopes %s -Xfrontend=-typecheck
|
||||
// REQUIRES: asserts, no_asan
|
||||
|
||||
// https://github.com/swiftlang/swift/issues/54830
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// RUN: %scale-test --invert-result --begin 1 --end 5 --step 1 --select NumLeafScopes %s -Xfrontend=-typecheck
|
||||
// RUN: %scale-test --invert-result --begin 1 --end 7 --step 1 --select NumLeafScopes %s -Xfrontend=-typecheck
|
||||
// REQUIRES: asserts, no_asan
|
||||
|
||||
// https://github.com/swiftlang/swift/issues/55762
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// RUN: %scale-test --invert-result --begin 1 --end 6 --step 1 --select NumLeafScopes %s -Xfrontend=-typecheck
|
||||
// RUN: %scale-test --invert-result --begin 1 --end 7 --step 1 --select NumLeafScopes %s -Xfrontend=-typecheck
|
||||
// REQUIRES: asserts, no_asan
|
||||
|
||||
// https://github.com/swiftlang/swift/issues/58051
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// RUN: %scale-test --invert-result --begin 1 --end 5 --step 1 --select NumLeafScopes %s --expected-exit-code 1
|
||||
// RUN: %scale-test --invert-result --begin 1 --end 7 --step 1 --select NumLeafScopes %s --expected-exit-code 1
|
||||
// REQUIRES: asserts,no_asan
|
||||
|
||||
% enum_cases = N
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// RUN: %scale-test --invert-result --begin 2 --end 6 --step 1 --select NumLeafScopes %s
|
||||
// RUN: %scale-test --invert-result --begin 2 --end 7 --step 1 --select NumLeafScopes %s
|
||||
// REQUIRES: asserts,no_asan
|
||||
// REQUIRES: rdar42969824,no_asan
|
||||
|
||||
|
||||
@@ -0,0 +1,9 @@
|
||||
// RUN: %scale-test --invert --begin 1 --end 7 --step 1 --select NumLeafScopes %s
|
||||
// REQUIRES: asserts,no_asan
|
||||
|
||||
func f(c: Float, a: SIMD2<Float>) -> SIMD2<Float> {
|
||||
return (c * a)
|
||||
%for i in range(1, N):
|
||||
+ (c * a)
|
||||
%end
|
||||
}
|
||||
@@ -1,4 +1,4 @@
|
||||
// RUN: %scale-test --begin 1 --end 5 --step 1 --select VarDeclUsageCheckerExprVisits %s
|
||||
// RUN: %scale-test --begin 1 --end 7 --step 1 --select VarDeclUsageCheckerExprVisits %s
|
||||
// REQUIRES: asserts
|
||||
|
||||
protocol Proto {}
|
||||
|
||||
Reference in New Issue
Block a user