Skip to content

Commit 7756728

Browse files
committed
Add synchronization test feature
1 parent d860460 commit 7756728

28 files changed

+31
-0
lines changed

test/lit.cfg

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -515,6 +515,10 @@ if threading != "none":
515515
config.substitutions.append(('%target-threading-opt',
516516
'-DSWIFT_THREADING_{0}=1'.format(threading.upper())))
517517

518+
synchronization = lit_config.params.get('synchronization', None)
519+
if synchronization is not None:
520+
config.available_features.add('synchronization')
521+
518522
test_options = os.environ.get('SWIFT_TEST_OPTIONS')
519523
if test_options:
520524
config.swift_test_options += ' '

test/stdlib/Atomics/AtomicLazyReference.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
// RUN: %target-run-simple-swift
22
// REQUIRES: executable_test
3+
// REQUIRES: synchronization
34

45
import Synchronization
56
import StdlibUnittest

test/stdlib/Atomics/Basics/AtomicBool.swift.gyb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
// RUN: %target-run-simple-swiftgyb
22
// REQUIRES: executable_test
3+
// REQUIRES: synchronization
34

45
%{
56
from gyb import expand

test/stdlib/Atomics/Basics/AtomicInt.swift.gyb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
// RUN: %target-run-simple-swiftgyb
22
// REQUIRES: executable_test
3+
// REQUIRES: synchronization
34

45
%{
56
from gyb import expand

test/stdlib/Atomics/Basics/AtomicInt16.swift.gyb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
// RUN: %target-run-simple-swiftgyb
22
// REQUIRES: executable_test
3+
// REQUIRES: synchronization
34

45
%{
56
from gyb import expand

test/stdlib/Atomics/Basics/AtomicInt32.swift.gyb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
// RUN: %target-run-simple-swiftgyb
22
// REQUIRES: executable_test
3+
// REQUIRES: synchronization
34

45
%{
56
from gyb import expand

test/stdlib/Atomics/Basics/AtomicInt64.swift.gyb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
// RUN: %target-run-simple-swiftgyb
22
// REQUIRES: executable_test
3+
// REQUIRES: synchronization
34

45
%{
56
from gyb import expand

test/stdlib/Atomics/Basics/AtomicInt8.swift.gyb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
// RUN: %target-run-simple-swiftgyb
22
// REQUIRES: executable_test
3+
// REQUIRES: synchronization
34

45
%{
56
from gyb import expand

test/stdlib/Atomics/Basics/AtomicMutablePointer.swift.gyb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
// RUN: %target-run-simple-swiftgyb
22
// REQUIRES: executable_test
3+
// REQUIRES: synchronization
34

45
%{
56
from gyb import expand

test/stdlib/Atomics/Basics/AtomicMutableRawPointer.swift.gyb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
// RUN: %target-run-simple-swiftgyb
22
// REQUIRES: executable_test
3+
// REQUIRES: synchronization
34

45
%{
56
from gyb import expand

0 commit comments

Comments
 (0)