[ruby-cvs:71451] normal:r64359 (trunk): spec/ruby/optional/capi/io_spec.rb: fix fragile spec from unpredictable errno

normal at ruby-lang.org normal at ruby-lang.org
Wed Aug 15 02:07:36 JST 2018


normal	2018-08-15 02:07:36 +0900 (Wed, 15 Aug 2018)

  New Revision: 64359

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

  Log:
    spec/ruby/optional/capi/io_spec.rb: fix fragile spec from unpredictable errno
    
    rb_io_wait_readable and rb_io_wait_writable depend on the TSD
    errno value.  Due to the recent changes in r64352-r64353 to
    restructure GVL, errno could be set to EAGAIN from the signal
    self-pipe and cause the rb_io_wait_readable spec to block
    unexpectedly.  This should fix rubyspec timeouts on Solaris:
    
      http://rubyci.s3.amazonaws.com/unstable11s/ruby-trunk/log/20180814T042506Z.fail.html.gz
    
    * spec/ruby/optional/capi/ext/io_spec.c: add errno= setter method
    * spec/ruby/optional/capi/io_spec.rb: set errno to appropriate values for tests

  Modified files:
    trunk/spec/ruby/optional/capi/ext/io_spec.c
    trunk/spec/ruby/optional/capi/io_spec.rb


More information about the ruby-cvs mailing list