diff --git a/Sources/TestingMacros/Support/TestContentGeneration.swift b/Sources/TestingMacros/Support/TestContentGeneration.swift index c6ea40357..9c5136d97 100644 --- a/Sources/TestingMacros/Support/TestContentGeneration.swift +++ b/Sources/TestingMacros/Support/TestContentGeneration.swift @@ -86,7 +86,7 @@ func makeTestContentRecordDecl(named name: TokenSyntax, in typeName: TypeSyntax? #elseif os(Windows) @_section(".sw5test$B") #else - @__testing(warning: "Platform-specific implementation missing: test content section name unavailable") + @Testing.__testing(warning: "Platform-specific implementation missing: test content section name unavailable") #endif @_used #endif diff --git a/Tests/TestingMacrosTests/PragmaMacroTests.swift b/Tests/TestingMacrosTests/PragmaMacroTests.swift index bba101754..9019085bf 100644 --- a/Tests/TestingMacrosTests/PragmaMacroTests.swift +++ b/Tests/TestingMacrosTests/PragmaMacroTests.swift @@ -22,6 +22,7 @@ struct PragmaMacroTests { let node = """ @Testing.__testing(semantics: "abc123") @__testing(semantics: "def456") + @UnrelatedModule.__testing(semantics: "xyz789") let x = 0 """ as DeclSyntax let nodeWithAttributes = try #require(node.asProtocol((any WithAttributesSyntax).self))