From b5ed7aae3be78f15ea46e56b8b7f19f25d1c0788 Mon Sep 17 00:00:00 2001 From: Dani Smith Date: Wed, 4 Dec 2024 15:31:33 +0200 Subject: [PATCH] [ruby/fiddle] Fix test_dlopen_linker_script_input_linux being omitted on Fedora 40 aarch64 (https://github.com/ruby/fiddle/pull/161) I found working on Fedora 40 on aarch64 that `test_dlopen_linker_script_input_linux` was omitted due to not finding libncurses.so, since it is in /usr/lib64. This PR makes the glob a little more portable. https://github.com/ruby/fiddle/commit/444774c0c4 --- test/fiddle/test_fiddle.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/fiddle/test_fiddle.rb b/test/fiddle/test_fiddle.rb index 28ae922171..3da0db9ad3 100644 --- a/test/fiddle/test_fiddle.rb +++ b/test/fiddle/test_fiddle.rb @@ -27,7 +27,7 @@ class TestFiddle < Fiddle::TestCase def test_dlopen_linker_script_input_linux omit("This is only for Linux") unless RUBY_PLATFORM.match?("linux") - if Dir.glob("/usr/lib/*/libncurses.so").empty? + if Dir.glob("/usr/lib{64}/**/libncurses.so").empty? omit("libncurses.so is needed") end if ffi_backend?