# Error in TestIO#test\_seek\_symwhence and TestIO#test\_seek on systems without File::Statfs#type (e.g

**URL:** <https://www.ruby-forum.com/t/error-in-testio-test-seek-symwhence-and-testio-test-seek-on-systems-without-file-statfs-type-e-g/240799>\
**Category:** Development\
**Created:** [April 30, 2014, 6:27pm UTC](https://www.ruby-forum.com/t/error-in-testio-test-seek-symwhence-and-testio-test-seek-on-systems-without-file-statfs-type-e-g/240799 "2014-04-30T18:27:32Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Detlef\_R](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/58f4c7/32.png) [@Detlef\_R](https://www.ruby-forum.com/u/Detlef_R)\
**Post date:** [April 30, 2014, 6:27pm UTC](https://www.ruby-forum.com/t/error-in-testio-test-seek-symwhence-and-testio-test-seek-on-systems-without-file-statfs-type-e-g/240799/1 "2014-04-30T18:27:32Z")

</div>

Issue #9789 has been updated by Naohisa G…

Related to Feature #9772: IO#statfs and File::Statfs added

* * *

Bug #9789: Error in TestIO#test\_seek\_symwhence and TestIO#test\_seek on  
systems without File::Statfs#type (e.g. Solaris)

> **[Bug #9789: Error in TestIO#test\_seek\_symwhence and TestIO#test\_seek on...](https://bugs.ruby-lang.org/issues/9789#change-46412)**
>
> Redmine

- Author: Naohisa G.
- Status: Open
- Priority: Normal
- Assignee:
- Category:
- Target version:
- ruby -v: ruby 2.2.0dev (2014-04-30) [sparc64-solaris2.10]
- Backport: 2.0.0: UNKNOWN, 2.1: UNKNOWN

* * *

File::Statfs#type が無い（NotImplementedErrorになる）環境にて、  
TestIO#test\_seek\_symwhence と TestIO#test\_seek がエラーになります。  
Solaris 10 (64ビット)、r45760 (+ Bug #9788 のパッチ）にて確認しました。

```auto
 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'

```
