summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDani Smith <[email protected]>2024-12-04 15:31:33 +0200
committerHiroshi SHIBATA <[email protected]>2024-12-10 11:30:19 +0900
commitb5ed7aae3be78f15ea46e56b8b7f19f25d1c0788 (patch)
tree1be6b3c6a1274d5e6da606f789b675b6592dfea9
parent462e2cfccf592905c8735a5cf920c7efdd56cabb (diff)
[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
-rw-r--r--test/fiddle/test_fiddle.rb2
1 files changed, 1 insertions, 1 deletions
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?