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 @@ -322,7 +322,10 @@ extension Backtrace {
322
322
323
323
/// The implementation of ``Backtrace/startCachingForThrownErrors()``, run
324
324
/// only once.
325
- private static let _startCachingForThrownErrors : Void = {
325
+ ///
326
+ /// This value is named oddly so that it shows up clearly in symbolicated
327
+ /// backtraces.
328
+ private static let __SWIFT_TESTING_IS_CAPTURING_A_BACKTRACE_FOR_A_THROWN_ERROR__ : Void = {
326
329
_oldWillThrowHandler. withLock { oldWillThrowHandler in
327
330
oldWillThrowHandler = swt_setWillThrowHandler { errorAddress in
328
331
let backtrace = Backtrace . current ( )
@@ -346,7 +349,7 @@ extension Backtrace {
346
349
/// developer-supplied code to ensure that thrown errors' backtraces are
347
350
/// always captured.
348
351
static func startCachingForThrownErrors( ) {
349
- _startCachingForThrownErrors
352
+ __SWIFT_TESTING_IS_CAPTURING_A_BACKTRACE_FOR_A_THROWN_ERROR__
350
353
}
351
354
352
355
/// Flush stale entries from the error-mapping cache.
You can’t perform that action at this time.
0 commit comments