diff options
author | Yusuke Endoh <mame@ruby-lang.org> | 2019-09-09 20:24:03 +0900 |
---|---|---|
committer | Yusuke Endoh <mame@ruby-lang.org> | 2019-09-09 20:24:03 +0900 |
commit | cce6cfbe486984c2c41d6b772a692ea87ad0222a (patch) | |
tree | cf2fb15982ba592ab6e6f565500ba75f7efa49bf /test/ruby/test_dir.rb | |
parent | 0691a748b6406670ef4cb52d0791b45033b7064e (diff) | |
download | ruby-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_dir.rb')
-rw-r--r-- | test/ruby/test_dir.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/test/ruby/test_dir.rb b/test/ruby/test_dir.rb index 75cae71093..1bb228fd45 100644 --- a/test/ruby/test_dir.rb +++ b/test/ruby/test_dir.rb @@ -122,6 +122,7 @@ class TestDir < Test::Unit::TestCase end def test_chroot_nodir + skip if RUBY_PLATFORM =~ /android/ assert_raise(NotImplementedError, Errno::ENOENT, Errno::EPERM ) { Dir.chroot(File.join(@nodir, "")) } end |