Skip to content

Commit ff1875f

Browse files
authored
Merge pull request #4228 from apple/swift3-FileCheck-substitution
[swift-3.0-branch] Tests: make FileCheck a substitution that sanitizes the input
2 parents 9b0b27e + 9a2836f commit ff1875f

File tree

1,693 files changed

+4870
-4794
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

1,693 files changed

+4870
-4794
lines changed

docs/Testing.rst

Lines changed: 8 additions & 2 deletions

test/1_stdlib/BitwiseOperationsType.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// RUN: %target-run-simple-swift | FileCheck %s
1+
// RUN: %target-run-simple-swift | %FileCheck %s
22
// REQUIRES: executable_test
33
struct MyInt32 : BitwiseOperations {
44
var underlying: Int32

test/1_stdlib/BridgeNonVerbatim.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
// outlive the array.
1717
//
1818
//===----------------------------------------------------------------------===//
19-
// RUN: %target-run-stdlib-swift %s | FileCheck %s
19+
// RUN: %target-run-stdlib-swift %s | %FileCheck %s
2020
// REQUIRES: executable_test
2121
//
2222
// REQUIRES: objc_interop

test/1_stdlib/Bridgeable.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// RUN: %target-run-simple-swift | FileCheck %s
1+
// RUN: %target-run-simple-swift | %FileCheck %s
22
// REQUIRES: executable_test
33

44
// REQUIRES: objc_interop

test/1_stdlib/Float.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,11 @@
33

44
// RUN: echo "typealias TestFloat = Float" > %t/float_type.swift
55
// RUN: %target-build-swift %t/main.swift %t/float_type.swift -o %t/float.out
6-
// RUN: %target-run %t/float.out | FileCheck %s
6+
// RUN: %target-run %t/float.out | %FileCheck %s
77

88
// RUN: echo "typealias TestFloat = Double" > %t/double_type.swift
99
// RUN: %target-build-swift %t/main.swift %t/double_type.swift -o %t/double.out
10-
// RUN: %target-run %t/double.out | FileCheck %s
10+
// RUN: %target-run %t/double.out | %FileCheck %s
1111
// REQUIRES: executable_test
1212

1313
//===---

test/1_stdlib/FloatingPointIR.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
// RUN: %target-build-swift -emit-ir %s | FileCheck -check-prefix=%target-cpu %s
2-
// RUN: %target-build-swift -O -emit-ir %s | FileCheck -check-prefix=%target-cpu %s
3-
// RUN: %target-build-swift -Ounchecked -emit-ir %s | FileCheck -check-prefix=%target-cpu %s
1+
// RUN: %target-build-swift -emit-ir %s | %FileCheck -check-prefix=%target-cpu %s
2+
// RUN: %target-build-swift -O -emit-ir %s | %FileCheck -check-prefix=%target-cpu %s
3+
// RUN: %target-build-swift -Ounchecked -emit-ir %s | %FileCheck -check-prefix=%target-cpu %s
44

55
var globalFloat32 : Float32 = 0.0
66
var globalFloat64 : Float64 = 0.0

test/1_stdlib/HeapBuffer.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// RUN: %target-run-simple-swift | FileCheck %s
1+
// RUN: %target-run-simple-swift | %FileCheck %s
22
// REQUIRES: executable_test
33

44
import Swift

test/1_stdlib/ImplicitlyUnwrappedOptional.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// RUN: %target-run-simple-swift | FileCheck %s
1+
// RUN: %target-run-simple-swift | %FileCheck %s
22
// REQUIRES: executable_test
33

44
var x : Int! = .none

test/1_stdlib/KVO.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// RUN: %target-run-simple-swift | FileCheck %s
1+
// RUN: %target-run-simple-swift | %FileCheck %s
22
// REQUIRES: executable_test
33

44
// REQUIRES: objc_interop

test/1_stdlib/Leak.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// RUN: %target-run-simple-swift | FileCheck %s
1+
// RUN: %target-run-simple-swift | %FileCheck %s
22
// REQUIRES: leak-checker
33

44
import StdlibUnittest

0 commit comments

Comments
 (0)