Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix test_dlopen_linker_script_input_linux being omitted on Fedora 40 aarch64 #161

Merged
merged 1 commit into from
Dec 4, 2024

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
@@ -27,7 +27,7 @@ def test_windows_constant

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
Development

Successfully merging this pull request may close these issues.

3 participants