File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed
Sources/Testing/SourceAttribution Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -192,7 +192,10 @@ extension Backtrace {
192192
193193 /// The implementation of ``Backtrace/startCachingForThrownErrors()``, run
194194 /// only once.
195- private static let _startCachingForThrownErrors : Void = {
195+ ///
196+ /// This value is named oddly so that it shows up clearly in symbolicated
197+ /// backtraces.
198+ private static let __SWIFT_TESTING_IS_CAPTURING_A_BACKTRACE_FOR_A_THROWN_ERROR__ : Void = {
196199 _oldWillThrowHandler. withLock { oldWillThrowHandler in
197200 oldWillThrowHandler = swt_setWillThrowHandler { errorAddress in
198201 let backtrace = Backtrace . current ( )
@@ -208,7 +211,7 @@ extension Backtrace {
208211 /// developer-supplied code to ensure that thrown errors' backtraces are
209212 /// always captured.
210213 static func startCachingForThrownErrors( ) {
211- _startCachingForThrownErrors
214+ __SWIFT_TESTING_IS_CAPTURING_A_BACKTRACE_FOR_A_THROWN_ERROR__
212215 }
213216
214217 /// Flush stale entries from the error-mapping cache.
You can’t perform that action at this time.
0 commit comments