Skip to content

Commit 0a21b06

Browse files
committed
Fix propagation of SWIFT_ENABLE_REFLECTION from CMake into lit.cfg and re-enable 'REQUIRES: reflection' tests
1 parent d1bb98b commit 0a21b06

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

test/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -199,6 +199,7 @@ normalize_boolean_spelling(SWIFT_RUN_TESTS_WITH_HOST_COMPILER)
199199
normalize_boolean_spelling(SWIFT_RUNTIME_ENABLE_LEAK_CHECKER)
200200
normalize_boolean_spelling(SWIFT_OPTIMIZED)
201201
normalize_boolean_spelling(SWIFT_STDLIB_SINGLE_THREADED_RUNTIME)
202+
normalize_boolean_spelling(SWIFT_ENABLE_REFLECTION)
202203
normalize_boolean_spelling(SWIFT_ENABLE_RUNTIME_FUNCTION_COUNTERS)
203204
normalize_boolean_spelling(SWIFT_HAVE_LIBXML2)
204205
normalize_boolean_spelling(SWIFT_INCLUDE_TOOLS)

test/stdlib/Error.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ ErrorTests.test("try!/location")
134134
.skip(.custom({ _isFastAssertConfiguration() },
135135
reason: "trap is not guaranteed to happen in -Ounchecked"))
136136
.crashOutputMatches(shouldCheckErrorLocation()
137-
? "main/Error.swift:140"
137+
? "main/Error.swift:\(#line + 4)"
138138
: "")
139139
.code {
140140
expectCrashLater()

0 commit comments

Comments
 (0)