Skip to content

Commit

Permalink
Skip failing test on FreeBSD [ci skip]
Browse files Browse the repository at this point in the history
  • Loading branch information
nobu committed Jun 17, 2022
1 parent 420f3ce commit 20d4168
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion test/ruby/test_file_exhaustive.rb
Expand Up @@ -1407,7 +1407,7 @@ def test_truncate
end

def test_flock_exclusive
omit "[Bug #18613]" if /freebsd/=~ RUBY_PLATFORM
omit "[Bug #18613]" if /freebsd/ =~ RUBY_PLATFORM

timeout = EnvUtil.apply_timeout_scale(0.1).to_s
File.open(regular_file, "r+") do |f|
Expand Down Expand Up @@ -1438,6 +1438,8 @@ def test_flock_exclusive
end

def test_flock_shared
omit "[Bug #18613]" if /freebsd/ =~ RUBY_PLATFORM

timeout = EnvUtil.apply_timeout_scale(0.1).to_s
File.open(regular_file, "r+") do |f|
f.flock(File::LOCK_SH)
Expand Down

0 comments on commit 20d4168

Please sign in to comment.