Skip to content

Conversation

@danini-the-panini
Copy link
Contributor

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.

@headius headius merged commit 444774c into ruby:master Dec 4, 2024
@headius
Copy link

headius commented Dec 4, 2024

Easy test fix, merged!

@danini-the-panini danini-the-panini deleted the fix-ncurses-test branch December 4, 2024 16:45
matzbot pushed a commit to ruby/ruby that referenced this pull request Dec 10, 2024
omitted on Fedora 40 aarch64
(ruby/fiddle#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.

ruby/fiddle@444774c0c4
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?
Copy link
Member

@nobu nobu Dec 10, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What did you intend by {64}?
As it doesn't contain any ,, it matches the /usr/lib64 directory only.

kou pushed a commit that referenced this pull request Dec 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants