[ruby-cvs:60200] normal:r53047 (trunk): IO#advise should not raise Errno::ENOSYS

normal at ruby-lang.org normal at ruby-lang.org
Sat Dec 12 07:49:29 JST 2015


normal	2015-12-12 07:49:27 +0900 (Sat, 12 Dec 2015)

  New Revision: 53047

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=53047

  Log:
    IO#advise should not raise Errno::ENOSYS
    
    As it is just a hint the kernel is free to ignore,
    IO#advise already succeeds when posix_fadvise is not
    available build time at all.  Following that, if posix_fadvise
    was available at build time but not implemented in the running
    kernel, we should also ignore it.
    
    * io.c (do_io_advise): do not raise on ENOSYS
    * test/ruby/test_io.rb (test_advise): do not skip on Errno::ENOSYS
      (test_advise_pipe): ditto
      [ruby-core:72066] [Feature #11806]

  Modified files:
    trunk/ChangeLog
    trunk/io.c
    trunk/test/ruby/test_io.rb


More information about the ruby-cvs mailing list