mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Skip EPERM
Docker's default seccomp whitelist does not include statx syscall by the default. Skipt this error for now. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@67102 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
c3e0244efe
commit
cc6806c76c
1 changed files with 3 additions and 0 deletions
|
@ -794,6 +794,9 @@ class TestPathname < Test::Unit::TestCase
|
|||
with_tmpchdir('rubytest-pathname') do |dir|
|
||||
open("a", "w") {}
|
||||
assert_kind_of(Time, Pathname("a").birthtime)
|
||||
rescue Errno::EPERM
|
||||
# Docker prohibits statx syscall by the default.
|
||||
skip("statx(2) is prohibited by seccomp")
|
||||
rescue NotImplementedError
|
||||
assert_raise(NotImplementedError) do
|
||||
File.birthtime("a")
|
||||
|
|
Loading…
Add table
Reference in a new issue