diff options
| author | Hiroshi Mimaki <[email protected]> | 2017-12-12 16:57:13 +0900 |
|---|---|---|
| committer | Hiroshi Mimaki <[email protected]> | 2017-12-12 16:57:13 +0900 |
| commit | 5ef8f18e9bab2f5855afe370c2c29df747ed199a (patch) | |
| tree | 63b32137b8666e51de6589e933de725025e80399 /mrbgems/mruby-io/test/file.rb | |
| parent | 9c0426c990859ecd7a68ebd886d002fe05699a57 (diff) | |
| download | mruby-5ef8f18e9bab2f5855afe370c2c29df747ed199a.tar.gz mruby-5ef8f18e9bab2f5855afe370c2c29df747ed199a.zip | |
Fixed mruby-io test failure on Windows platform.
Diffstat (limited to 'mrbgems/mruby-io/test/file.rb')
| -rw-r--r-- | mrbgems/mruby-io/test/file.rb | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/mrbgems/mruby-io/test/file.rb b/mrbgems/mruby-io/test/file.rb index da3e2aa11..e5c127746 100644 --- a/mrbgems/mruby-io/test/file.rb +++ b/mrbgems/mruby-io/test/file.rb @@ -106,6 +106,7 @@ assert("File.readlink") do end assert("File.readlink fails with non-symlink") do + skip "readlink is not supported on this platform" if MRubyIOTestUtil.win? begin e2 = nil assert_raise(RuntimeError) { @@ -126,10 +127,6 @@ assert("File.readlink fails with non-symlink") do end end -assert('File TEST CLEANUP') do - assert_nil MRubyIOTestUtil.io_test_cleanup -end - assert('File.expand_path') do assert_equal "/", File.expand_path("..", "/tmp"), "parent path with base_dir (1)" assert_equal "/tmp", File.expand_path("..", "/tmp/mruby"), "parent path with base_dir (2)" @@ -194,3 +191,7 @@ assert('File.chmod') do File.delete('chmod-test') end end + +assert('File TEST CLEANUP') do + assert_nil MRubyIOTestUtil.io_test_cleanup +end |
