Skip to content

Commit fc468e1

Browse files
authored
Merge pull request #35682 from davezarzycki/pr35682
[Testing] NFC: Make BoxingCasts test concurrent
2 parents 72def19 + 716e38c commit fc468e1

File tree

5 files changed

+56
-26
lines changed

5 files changed

+56
-26
lines changed
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
// RUN: %empty-directory(%t)
2+
//
3+
// RUN: %gyb %S/Inputs/BoxingCasts.swift.gyb -o %t/BoxingCasts.swift
4+
//
5+
// RUN: %line-directive %t/BoxingCasts.swift -- %target-build-swift -g -O -module-name a -O -swift-version 4 %t/BoxingCasts.swift -o %t/a.swift4.O.out
6+
// RUN: %target-codesign %t/a.swift4.O.out
7+
// RUN: %line-directive %t/BoxingCasts.swift -- %target-run %t/a.swift4.O.out
8+
//
9+
// Note: The RUN directives above override the default test optimizations.
10+
// These tests are deliberately run both ways:
11+
// * optimized to verify compiler cast optimizations, and
12+
// * non-optimized to verify the runtime methods used for non-optimized casts.
13+
//
14+
// REQUIRES: executable_test
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
// RUN: %empty-directory(%t)
2+
//
3+
// RUN: %gyb %S/Inputs/BoxingCasts.swift.gyb -o %t/BoxingCasts.swift
4+
//
5+
// RUN: %line-directive %t/BoxingCasts.swift -- %target-build-swift -g -module-name a -Onone -swift-version 4 %t/BoxingCasts.swift -o %t/a.swift4.Onone.out
6+
// RUN: %target-codesign %t/a.swift4.Onone.out
7+
// RUN: %line-directive %t/BoxingCasts.swift -- %target-run %t/a.swift4.Onone.out
8+
//
9+
// Note: The RUN directives above override the default test optimizations.
10+
// These tests are deliberately run both ways:
11+
// * optimized to verify compiler cast optimizations, and
12+
// * non-optimized to verify the runtime methods used for non-optimized casts.
13+
//
14+
// REQUIRES: executable_test
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
// RUN: %empty-directory(%t)
2+
//
3+
// RUN: %gyb %S/Inputs/BoxingCasts.swift.gyb -o %t/BoxingCasts.swift
4+
//
5+
// RUN: %line-directive %t/BoxingCasts.swift -- %target-build-swift -g -O -module-name a -O -swift-version 5 %t/BoxingCasts.swift -o %t/a.swift5.O.out
6+
// RUN: %target-codesign %t/a.swift5.O.out
7+
// RUN: %line-directive %t/BoxingCasts.swift -- %target-run %t/a.swift5.O.out
8+
//
9+
// Note: The RUN directives above override the default test optimizations.
10+
// These tests are deliberately run both ways:
11+
// * optimized to verify compiler cast optimizations, and
12+
// * non-optimized to verify the runtime methods used for non-optimized casts.
13+
//
14+
// REQUIRES: executable_test
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
// RUN: %empty-directory(%t)
2+
//
3+
// RUN: %gyb %S/Inputs/BoxingCasts.swift.gyb -o %t/BoxingCasts.swift
4+
//
5+
// RUN: %line-directive %t/BoxingCasts.swift -- %target-build-swift -g -module-name a -Onone -swift-version 5 %t/BoxingCasts.swift -o %t/a.swift5.Onone.out
6+
// RUN: %target-codesign %t/a.swift5.Onone.out
7+
// RUN: %line-directive %t/BoxingCasts.swift -- %target-run %t/a.swift5.Onone.out
8+
//
9+
// Note: The RUN directives above override the default test optimizations.
10+
// These tests are deliberately run both ways:
11+
// * optimized to verify compiler cast optimizations, and
12+
// * non-optimized to verify the runtime methods used for non-optimized casts.
13+
//
14+
// REQUIRES: executable_test

validation-test/Casting/BoxingCasts.swift.gyb renamed to validation-test/Casting/Inputs/BoxingCasts.swift.gyb

Lines changed: 0 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -13,32 +13,6 @@
1313
/// Contains tests for existential, optional, and other casts that box/unbox values.
1414
///
1515
// -----------------------------------------------------------------------------
16-
// RUN: %empty-directory(%t)
17-
//
18-
// RUN: %gyb %s -o %t/BoxingCasts.swift
19-
//
20-
// RUN: %line-directive %t/BoxingCasts.swift -- %target-build-swift -g -module-name a -Onone -swift-version 5 %t/BoxingCasts.swift -o %t/a.swift5.Onone.out
21-
// RUN: %target-codesign %t/a.swift5.Onone.out
22-
// RUN: %line-directive %t/BoxingCasts.swift -- %target-run %t/a.swift5.Onone.out
23-
//
24-
// RUN: %line-directive %t/BoxingCasts.swift -- %target-build-swift -g -O -module-name a -O -swift-version 5 %t/BoxingCasts.swift -o %t/a.swift5.O.out
25-
// RUN: %target-codesign %t/a.swift5.O.out
26-
// RUN: %line-directive %t/BoxingCasts.swift -- %target-run %t/a.swift5.O.out
27-
//
28-
// RUN: %line-directive %t/BoxingCasts.swift -- %target-build-swift -g -module-name a -Onone -swift-version 4 %t/BoxingCasts.swift -o %t/a.swift4.Onone.out
29-
// RUN: %target-codesign %t/a.swift4.Onone.out
30-
// RUN: %line-directive %t/BoxingCasts.swift -- %target-run %t/a.swift4.Onone.out
31-
//
32-
// RUN: %line-directive %t/BoxingCasts.swift -- %target-build-swift -g -O -module-name a -O -swift-version 4 %t/BoxingCasts.swift -o %t/a.swift4.O.out
33-
// RUN: %target-codesign %t/a.swift4.O.out
34-
// RUN: %line-directive %t/BoxingCasts.swift -- %target-run %t/a.swift4.O.out
35-
//
36-
// Note: The RUN directives above override the default test optimizations.
37-
// This test is deliberately run both ways:
38-
// * optimized to verify compiler cast optimizations, and
39-
// * non-optimized to verify the runtime methods used for non-optimized casts.
40-
//
41-
// REQUIRES: executable_test
4216

4317
import StdlibUnittest
4418
#if _runtime(_ObjC)

0 commit comments

Comments
 (0)