diff --git a/Sources/Testing/Discovery.swift b/Sources/Testing/Discovery.swift index 0a566c36c..d9acdca19 100644 --- a/Sources/Testing/Discovery.swift +++ b/Sources/Testing/Discovery.swift @@ -86,8 +86,13 @@ struct TestContentRecord: Sendable where T: ~Copyable { /// with interfaces such as `dlsym()` that expect such a pointer. #if SWT_NO_DYNAMIC_LINKING @available(*, unavailable, message: "Image addresses are not available on this platform.") -#endif + nonisolated(unsafe) var imageAddress: UnsafeRawPointer? { + get { fatalError() } + set { fatalError() } + } +#else nonisolated(unsafe) var imageAddress: UnsafeRawPointer? +#endif /// The underlying test content record loaded from a metadata section. private var _record: __TestContentRecord