@@ -169,30 +169,31 @@ private let testingLibraryRecord: __TestContentRecord = (
169169 0x6D61696E , /* 'main' */
170170 0 ,
171171 { outValue, type, hint, _ in
172- #if !hasFeature(Embedded)
173- guard type. load ( as: Any . Type. self) == Library . Record. self else {
174- return false
175- }
176- #endif
177- let hint = hint. map { $0. load ( as: UnsafePointer< CChar> . self ) }
178- if let hint {
179- guard let hint = String ( validatingCString: hint) ,
180- String ( hint. filter ( \. isLetter) ) . lowercased ( ) == " swifttesting " else {
181- return false
182- }
183- }
184- let name : StaticString = " Swift Testing "
185- name. utf8Start. withMemoryRebound ( to: CChar . self, capacity: name. utf8CodeUnitCount + 1 ) { name in
186- _ = outValue. initializeMemory (
187- as: Library . Record. self,
188- to: . init(
189- name: name,
190- entryPoint: testingLibraryDiscoverableEntryPoint,
191- reserved: 0
192- )
193- )
194- }
195- return true
172+ return false
173+ // #if !hasFeature(Embedded)
174+ // guard type.load(as: Any.Type.self) == Library.Record.self else {
175+ // return false
176+ // }
177+ // #endif
178+ // let hint = hint.map { $0.load(as: UnsafePointer<CChar>.self) }
179+ // if let hint {
180+ // guard let hint = String(validatingCString: hint),
181+ // String(hint.filter(\.isLetter)).lowercased() == "swifttesting" else {
182+ // return false
183+ // }
184+ // }
185+ // let name: StaticString = "Swift Testing"
186+ // name.utf8Start.withMemoryRebound(to: CChar.self, capacity: name.utf8CodeUnitCount + 1) { name in
187+ // _ = outValue.initializeMemory(
188+ // as: Library.Record.self,
189+ // to: .init(
190+ // name: name,
191+ // entryPoint: testingLibraryDiscoverableEntryPoint,
192+ // reserved: 0
193+ // )
194+ // )
195+ // }
196+ // return true
196197 } ,
197198 0 ,
198199 0
0 commit comments