File tree 1 file changed +5
-2
lines changed
Sources/Testing/SourceAttribution
1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -192,7 +192,10 @@ extension Backtrace {
192
192
193
193
/// The implementation of ``Backtrace/startCachingForThrownErrors()``, run
194
194
/// 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 = {
196
199
_oldWillThrowHandler. withLock { oldWillThrowHandler in
197
200
oldWillThrowHandler = swt_setWillThrowHandler { errorAddress in
198
201
let backtrace = Backtrace . current ( )
@@ -208,7 +211,7 @@ extension Backtrace {
208
211
/// developer-supplied code to ensure that thrown errors' backtraces are
209
212
/// always captured.
210
213
static func startCachingForThrownErrors( ) {
211
- _startCachingForThrownErrors
214
+ __SWIFT_TESTING_IS_CAPTURING_A_BACKTRACE_FOR_A_THROWN_ERROR__
212
215
}
213
216
214
217
/// Flush stale entries from the error-mapping cache.
You can’t perform that action at this time.
0 commit comments