aboutsummaryrefslogtreecommitdiffstats
path: root/test/ruby/test_file_exhaustive.rb
diff options
context:
space:
mode:
authorYusuke Endoh <mame@ruby-lang.org>2019-09-09 20:24:03 +0900
committerYusuke Endoh <mame@ruby-lang.org>2019-09-09 20:24:03 +0900
commitcce6cfbe486984c2c41d6b772a692ea87ad0222a (patch)
treecf2fb15982ba592ab6e6f565500ba75f7efa49bf /test/ruby/test_file_exhaustive.rb
parent0691a748b6406670ef4cb52d0791b45033b7064e (diff)
downloadruby-cce6cfbe486984c2c41d6b772a692ea87ad0222a.tar.gz
Make test-all and test-spec runnable on Android
Calling some syscall functions such as Dir.chroot causes SIGSYS instead of EPERM on Android. This change skips all tests that stops the test-suite run.
Diffstat (limited to 'test/ruby/test_file_exhaustive.rb')
-rw-r--r--test/ruby/test_file_exhaustive.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/test/ruby/test_file_exhaustive.rb b/test/ruby/test_file_exhaustive.rb
index 33ed73d9fc..2a5a860cf8 100644
--- a/test/ruby/test_file_exhaustive.rb
+++ b/test/ruby/test_file_exhaustive.rb
@@ -642,6 +642,7 @@ class TestFileExhaustive < Test::Unit::TestCase
end
def test_birthtime
+ skip if RUBY_PLATFORM =~ /android/
[regular_file, utf8_file].each do |file|
t1 = File.birthtime(file)
t2 = File.open(file) {|f| f.birthtime}