mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
[ruby/fiddle] Module file name may be the realpath
Even when the path which was used to dlopen may be a symlink.
This commit is contained in:
parent
2fa3209a35
commit
c67c83fb68
1 changed files with 1 additions and 1 deletions
|
@ -115,7 +115,7 @@ module Fiddle
|
|||
def test_file_name
|
||||
file_name = Handle.new(LIBC_SO).file_name
|
||||
assert_kind_of String, file_name
|
||||
expected = File.basename(LIBC_SO)
|
||||
expected = File.basename(File.realpath(LIBC_SO))
|
||||
basename = File.basename(file_name)
|
||||
if File::FNM_SYSCASE.zero?
|
||||
assert_equal expected, basename
|
||||
|
|
Loading…
Add table
Reference in a new issue