Skip to content

Commit e7111a5

Browse files
committed
Disable module lookup, let's see if that helps
1 parent 6a2ad66 commit e7111a5

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

Tests/TestingTests/ABIEntryPointTests.swift

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -185,13 +185,13 @@ private func withTestingLibraryImageAddress<R>(_ body: (ImageAddress?) throws ->
185185
#elseif os(Linux) || os(FreeBSD) || os(Android)
186186
// When using glibc, dladdr() is only available if __USE_GNU is specified.
187187
#elseif os(Windows)
188-
let flags = DWORD(GET_MODULE_HANDLE_EX_FLAG_FROM_ADDRESS)
189-
try addressInTestingLibrary.withMemoryRebound(to: wchar_t.self, capacity: MemoryLayout<UnsafeRawPointer>.stride / MemoryLayout<wchar_t>.stride) { addressInTestingLibrary in
190-
try #require(GetModuleHandleExW(flags, addressInTestingLibrary, &testingLibraryAddress))
191-
}
192-
defer {
193-
FreeLibrary(testingLibraryAddress)
194-
}
188+
// let flags = DWORD(GET_MODULE_HANDLE_EX_FLAG_FROM_ADDRESS)
189+
// try addressInTestingLibrary.withMemoryRebound(to: wchar_t.self, capacity: MemoryLayout<UnsafeRawPointer>.stride / MemoryLayout<wchar_t>.stride) { addressInTestingLibrary in
190+
// try #require(GetModuleHandleExW(flags, addressInTestingLibrary, &testingLibraryAddress))
191+
// }
192+
// defer {
193+
// FreeLibrary(testingLibraryAddress)
194+
// }
195195
#else
196196
#warning("Platform-specific implementation missing: cannot find the testing library image the test suite is linked against")
197197
#endif

0 commit comments

Comments
 (0)