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/fiddle | |
parent | 0691a748b6406670ef4cb52d0791b45033b7064e (diff) |
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/fiddle')
-rw-r--r-- | test/fiddle/helper.rb | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/test/fiddle/helper.rb b/test/fiddle/helper.rb index 4aaa55ea78..d6fc44af4b 100644 --- a/test/fiddle/helper.rb +++ b/test/fiddle/helper.rb @@ -10,6 +10,13 @@ case RUBY_PLATFORM when /cygwin/ libc_so = "cygwin1.dll" libm_so = "cygwin1.dll" +when /android/ + libdir = '/system/lib' + if [0].pack('L!').size == 8 + libdir = '/system/lib64' + end + libc_so = File.join(libdir, "libc.so") + libm_so = File.join(libdir, "libm.so") when /linux/ libdir = '/lib' case [0].pack('L!').size |