diff options
Diffstat (limited to 'test/pathname/test_pathname.rb')
-rw-r--r-- | test/pathname/test_pathname.rb | 3 |
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") |