-
-
Notifications
You must be signed in to change notification settings - Fork 925
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
jruby 9000 FreeBSD TestFileUtils#test_chmod_symbol_mode fails #2792
Comments
bin/jruby -v |
I don't have a FreeBSD instance handy. Can you run this again with -Xbacktrace.style=raw and gist the result? We do use native calls to chmod...perhaps this is another case of FreeBSD having it in an unusual library? |
https://gist.github.com/bgalbrecht/d0e9c7d1a475089f2646 chmod is in libc and the api is:
where mode_t is defined as an unsigned 16 bit integer: |
Ahh well if mode_t is 16-bit uint that could explain it. jnr-posix, through which we call chmod, currently uses a 32-bit signed int (Java int) for the signature. |
Hmm... well we do have a test for fchmod in jnr-posix and that appears to be passing just fine. |
If you would like to help move this along, a test for jnr-posix's chmod would help us determine if the problem is there or in JRuby's use of jnr-posix's chmod. |
After building jruby 9000 on FreeBSD 10.1 release, when running
bin/jruby -S rake test:mri
I get the following error:
[2287/6445] TestFileUtils#test_chmod_symbol_mode = 0.01 s
TestFileUtils#test_chmod_symbol_mode:
SystemCallError: Unknown error - No message available
org/jruby/RubyFile.java:581:in
chmod' /usr/home/bruce/jruby-dev/jruby/lib/ruby/stdlib/fileutils.rb:1354:in
chmod'/usr/home/bruce/jruby-dev/jruby/lib/ruby/stdlib/fileutils.rb:1009:in
block in chmod' org/jruby/RubyArray.java:1570:in
each'/usr/home/bruce/jruby-dev/jruby/lib/ruby/stdlib/fileutils.rb:1008:in
chmod' /usr/home/bruce/jruby-dev/jruby/test/mri/fileutils/test_fileutils.rb:1001:in
test_chmod_symbol_mode'The text was updated successfully, but these errors were encountered: