Skip to content

Commit 8be7136

Browse files
authored
Change experimental reflection lit feature to reflection_runtime (#63670)
The feature "reflection" was already used in the tests (enabled with SWIFT_ENABLE_REFLECTION). The new feature tests were triggered even if the experimental feature was not enabled in people builds. Change the spelling to "reflection_runtime" to not clash with the existing feature. Change all the tests I found added lately that has the existing spelling.
1 parent 3fef8a8 commit 8be7136

File tree

11 files changed

+11
-11
lines changed

11 files changed

+11
-11
lines changed

test/lit.site.cfg.in

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ if "@SWIFT_STDLIB_ENABLE_UNICODE_DATA" == "TRUE":
141141
if "@SWIFT_ENABLE_EXPERIMENTAL_STRING_PROCESSING@" == "TRUE":
142142
config.available_features.add('string_processing')
143143
if "@SWIFT_ENABLE_EXPERIMENTAL_REFLECTION@" == "TRUE":
144-
config.available_features.add('reflection')
144+
config.available_features.add('reflection_runtime')
145145
if "@SWIFT_STDLIB_ENABLE_DEBUG_PRECONDITIONS_IN_RELEASE@" == "TRUE":
146146
config.available_features.add('swift_stdlib_debug_preconditions_in_release')
147147

test/stdlib/Reflection/PartialType.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// RUN: %target-run-simple-swift
22
// REQUIRES: executable_test
3-
// REQUIRES: reflection
3+
// REQUIRES: reflection_runtime
44
// UNSUPPORTED: freestanding
55

66
import StdlibUnittest

test/stdlib/_Runtime/ContextDescriptor/StructDescriptor.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// RUN: %target-run-simple-swift
22
// REQUIRES: executable_test
3-
// REQUIRES: reflection
3+
// REQUIRES: reflection_runtime
44
// UNSUPPORTED: freestanding
55

66
import StdlibUnittest

test/stdlib/_Runtime/Metadata/FunctionMetadata.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// RUN: %target-run-simple-swift
22
// REQUIRES: executable_test
3-
// REQUIRES: reflection
3+
// REQUIRES: reflection_runtime
44
// UNSUPPORTED: freestanding
55

66
import StdlibUnittest

test/stdlib/_Runtime/Metadata/Metadata.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// RUN: %target-run-simple-swift
22
// REQUIRES: executable_test
3-
// REQUIRES: reflection
3+
// REQUIRES: reflection_runtime
44
// UNSUPPORTED: freestanding
55

66
import StdlibUnittest

test/stdlib/_Runtime/Metadata/MetatypeMetadata.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// RUN: %target-run-simple-swift
22
// REQUIRES: executable_test
3-
// REQUIRES: reflection
3+
// REQUIRES: reflection_runtime
44
// UNSUPPORTED: freestanding
55

66
import StdlibUnittest

test/stdlib/_Runtime/Metadata/StructMetadata.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// RUN: %target-run-simple-swift
22
// REQUIRES: executable_test
3-
// REQUIRES: reflection
3+
// REQUIRES: reflection_runtime
44
// UNSUPPORTED: freestanding
55

66
import StdlibUnittest

test/stdlib/_Runtime/Metadata/TupleMetadata.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// RUN: %target-run-simple-swift
22
// REQUIRES: executable_test
3-
// REQUIRES: reflection
3+
// REQUIRES: reflection_runtime
44
// UNSUPPORTED: freestanding
55

66
import StdlibUnittest

test/stdlib/_Runtime/Metadata/TypeMetadata.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// RUN: %target-run-simple-swift
22
// REQUIRES: executable_test
3-
// REQUIRES: reflection
3+
// REQUIRES: reflection_runtime
44
// UNSUPPORTED: freestanding
55

66
import StdlibUnittest

test/stdlib/_Runtime/Metadata/ValueWitnessTable.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// RUN: %target-run-simple-swift
22
// REQUIRES: executable_test
3-
// REQUIRES: reflection
3+
// REQUIRES: reflection_runtime
44
// UNSUPPORTED: freestanding
55

66
import StdlibUnittest

validation-test/lit.site.cfg.in

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ if "@SWIFT_ENABLE_EXPERIMENTAL_DISTRIBUTED@" == "TRUE":
128128
if "@SWIFT_ENABLE_EXPERIMENTAL_STRING_PROCESSING@" == "TRUE":
129129
config.available_features.add('string_processing')
130130
if "@SWIFT_ENABLE_EXPERIMENTAL_REFLECTION@" == "TRUE":
131-
config.available_features.add('reflection')
131+
config.available_features.add('reflection_runtime')
132132
if "@SWIFT_STDLIB_ENABLE_DEBUG_PRECONDITIONS_IN_RELEASE@" == "TRUE":
133133
config.available_features.add('swift_stdlib_debug_preconditions_in_release')
134134

0 commit comments

Comments
 (0)