Skip to content

Commit ef196cc

Browse files
committed
Exclude a couple tests failing on JRuby for multiple reasons
* jruby/jruby#8972 but also at least 2 more incompatibilities.
1 parent 122b088 commit ef196cc

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

test/pathname/test_pathname.rb

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -370,10 +370,11 @@ def has_hardlink?
370370
end
371371

372372
def realpath(path, basedir=nil)
373-
Pathname.new(path).realpath(basedir).to_s
373+
Pathname.new(path).realpath(*basedir).to_s
374374
end
375375

376376
def test_realpath
377+
omit "not working yet" if RUBY_ENGINE == "jruby"
377378
return if !has_symlink?
378379
with_tmpchdir('rubytest-pathname') {|dir|
379380
assert_raise(Errno::ENOENT) { realpath("#{dir}/not-exist") }
@@ -434,6 +435,7 @@ def realdirpath(path)
434435
end
435436

436437
def test_realdirpath
438+
omit "not working yet" if RUBY_ENGINE == "jruby"
437439
return if !has_symlink?
438440
Dir.mktmpdir('rubytest-pathname') {|dir|
439441
rdir = realpath(dir)

0 commit comments

Comments
 (0)