1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

Skip EPERM, when statx(2) is wholely blocked

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@67120 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
nobu 2019-02-22 06:35:44 +00:00
parent 1ae52fcddf
commit def040f6c3

View file

@ -630,8 +630,11 @@ class TestFileExhaustive < Test::Unit::TestCase
assert_kind_of(Time, t1) assert_kind_of(Time, t1)
assert_kind_of(Time, t2) assert_kind_of(Time, t2)
assert_equal(t1, t2) assert_equal(t1, t2)
rescue Errno::ENOSYS, Errno::EPERM rescue Errno::ENOSYS
# ignore unsupporting filesystems # ignore unsupporting filesystems
rescue Errno::EPERM
# Docker prohibits statx syscall by the default.
skip("statx(2) is prohibited by seccomp")
end end
assert_raise(Errno::ENOENT) { File.birthtime(nofile) } assert_raise(Errno::ENOENT) { File.birthtime(nofile) }
end if File.respond_to?(:birthtime) end if File.respond_to?(:birthtime)