[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
This commit is contained in:
Dani Smith 2024-12-04 15:31:33 +02:00 committed by Hiroshi SHIBATA
parent 462e2cfccf
commit b5ed7aae3b
No known key found for this signature in database
GPG Key ID: F9CF13417264FAC2

View File

@ -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?