From 0d66d73de912f064d782dc3c80c98287def3d465 Mon Sep 17 00:00:00 2001 From: Lars Kanis Date: Mon, 12 Dec 2022 08:40:21 +0100 Subject: [PATCH] Skip spec of linker script emulation on Macos It fails in Macos-12, since that version raises a different error message than Macos-11. On the other hand, linker script emulation seems not to be in use on Macos at all, since Macos uses .dylib file extansion rather than .so. Fixes #981 --- spec/ffi/library_spec.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spec/ffi/library_spec.rb b/spec/ffi/library_spec.rb index ca28974c9..5b806bba6 100644 --- a/spec/ffi/library_spec.rb +++ b/spec/ffi/library_spec.rb @@ -88,7 +88,7 @@ class StructUCDP < FFI::Struct }.to raise_error(LoadError) end - it "interprets INPUT() in loader scripts", unless: FFI::Platform.windows? do + it "interprets INPUT() in linker scripts", unless: FFI::Platform.windows? || FFI::Platform.mac? do path = File.dirname(TestLibrary::PATH) file = File.basename(TestLibrary::PATH) script = File.join(path, "ldscript.so")