summaryrefslogtreecommitdiff
path: root/test/pathname/test_pathname.rb
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2019-02-20 08:31:17 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2019-02-20 08:31:17 +0000
commitcc6806c76c217354c6d1ad70585b033a00faa7a9 (patch)
treecf6d2f6b42c0df6dcc02e5563c63db6040b9be06 /test/pathname/test_pathname.rb
parentc3e0244efe21a99cf81fb26a18b797e0e84b54a5 (diff)
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
Diffstat (limited to 'test/pathname/test_pathname.rb')
-rw-r--r--test/pathname/test_pathname.rb3
1 files changed, 3 insertions, 0 deletions
diff --git a/test/pathname/test_pathname.rb b/test/pathname/test_pathname.rb
index 78f0af71df..a365b6e5d4 100644
--- a/test/pathname/test_pathname.rb
+++ b/test/pathname/test_pathname.rb
@@ -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")