[ruby-dev:48164] [ruby-trunk - Bug #9789] [Closed] Error in TestIO#test_seek_symwhence and TestIO#test_seek on systems without File::Statfs#type (e.g. Solaris)

From: nobu@...
Date: 2014-05-02 02:33:01 UTC
List: ruby-dev #48164
Issue #9789 has been updated by Nobuyoshi Nakada.

Status changed from Open to Closed
% Done changed from 0 to 100

Applied in changeset r45783.

----------
test_io.rb: defer f_type

* test/ruby/test_io.rb (test_seek, test_seek_symwhence): defer
  File::Statfs#type call which may not be implemented, to mitigate
  errors on platforms where SEEK_DATA is available but f_type in
  struct statfs is not.  [ruby-dev:48154] [Bug #9789]

----------------------------------------
Bug #9789: Error in TestIO#test_seek_symwhence and TestIO#test_seek on syst=
ems without File::Statfs#type (e.g. Solaris)
https://bugs.ruby-lang.org/issues/9789#change-46438

* Author: Naohisa Goto
* Status: Closed
* Priority: Normal
* Assignee: Naohisa Goto
* Category: core
* Target version: current: 2.2.0
* ruby -v: ruby 2.2.0dev (2014-04-30) [sparc64-solaris2.10]
* Backport: 2.0.0: DONTNEED, 2.1: DONTNEED
----------------------------------------
File::Statfs#type =E3=81=8C=E7=84=A1=E3=81=84=EF=BC=88NotImplementedError=
=E3=81=AB=E3=81=AA=E3=82=8B=EF=BC=89=E7=92=B0=E5=A2=83=E3=81=AB=E3=81=A6=E3=
=80=81
TestIO#test_seek_symwhence =E3=81=A8 TestIO#test_seek =E3=81=8C=E3=82=A8=E3=
=83=A9=E3=83=BC=E3=81=AB=E3=81=AA=E3=82=8A=E3=81=BE=E3=81=99=E3=80=82
Solaris 10 (64=E3=83=93=E3=83=83=E3=83=88)=E3=80=81r45760 (+ Bug #9788 =E3=
=81=AE=E3=83=91=E3=83=83=E3=83=81=EF=BC=89=E3=81=AB=E3=81=A6=E7=A2=BA=E8=AA=
=8D=E3=81=97=E3=81=BE=E3=81=97=E3=81=9F=E3=80=82

~~~
 52) Error:
TestIO#test_seek_symwhence:
NotImplementedError: type() function is unimplemented on this machine
    /XXXXXXXXXX/test/ruby/test_io.rb:1768:in `type'
    /XXXXXXXXXX/test/ruby/test_io.rb:1768:in `block (2 levels) in test_seek=
_symwhence'
    /XXXXXXXXXX/lib/open-uri.rb:36:in `open'
    /XXXXXXXXXX/lib/open-uri.rb:36:in `open'
    /XXXXXXXXXX/test/ruby/test_io.rb:1765:in `block in test_seek_symwhence'
    /XXXXXXXXXX/test/ruby/test_io.rb:1432:in `make_tempfile'
    /XXXXXXXXXX/test/ruby/test_io.rb:1747:in `test_seek_symwhence'

 53) Error:
TestIO#test_seek:
NotImplementedError: type() function is unimplemented on this machine
    /XXXXXXXXXX/test/ruby/test_io.rb:1718:in `type'
    /XXXXXXXXXX/test/ruby/test_io.rb:1718:in `block (2 levels) in test_seek'
    /XXXXXXXXXX/lib/open-uri.rb:36:in `open'
    /XXXXXXXXXX/lib/open-uri.rb:36:in `open'
    /XXXXXXXXXX/test/ruby/test_io.rb:1715:in `block in test_seek'
    /XXXXXXXXXX/test/ruby/test_io.rb:1432:in `make_tempfile'
    /XXXXXXXXXX/test/ruby/test_io.rb:1692:in `test_seek'
~~~




--=20
https://bugs.ruby-lang.org/

In This Thread

Prev Next