diff --git a/test/ruby/test_file_exhaustive.rb b/test/ruby/test_file_exhaustive.rb index eb8dd73c21..02890bb2a7 100644 --- a/test/ruby/test_file_exhaustive.rb +++ b/test/ruby/test_file_exhaustive.rb @@ -630,8 +630,11 @@ class TestFileExhaustive < Test::Unit::TestCase assert_kind_of(Time, t1) assert_kind_of(Time, t2) assert_equal(t1, t2) - rescue Errno::ENOSYS, Errno::EPERM + rescue Errno::ENOSYS # ignore unsupporting filesystems + rescue Errno::EPERM + # Docker prohibits statx syscall by the default. + skip("statx(2) is prohibited by seccomp") end assert_raise(Errno::ENOENT) { File.birthtime(nofile) } end if File.respond_to?(:birthtime)