ruby-changes:54897
From: nobu <ko1@a...>
Date: Wed, 20 Feb 2019 17:31:22 +0900 (JST)
Subject: [ruby-changes:54897] nobu:r67102 (trunk): Skip EPERM
nobu 2019-02-20 17:31:17 +0900 (Wed, 20 Feb 2019) New Revision: 67102 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=67102 Log: Skip EPERM Docker's default seccomp whitelist does not include statx syscall by the default. Skipt this error for now. Modified files: trunk/test/pathname/test_pathname.rb Index: test/pathname/test_pathname.rb =================================================================== --- test/pathname/test_pathname.rb (revision 67101) +++ test/pathname/test_pathname.rb (revision 67102) @@ -794,6 +794,9 @@ class TestPathname < Test::Unit::TestCas https://github.com/ruby/ruby/blob/trunk/test/pathname/test_pathname.rb#L794 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") -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/