summaryrefslogtreecommitdiffhomepage
path: root/mrbgems/mruby-io/test/file.rb
diff options
context:
space:
mode:
authorYukihiro "Matz" Matsumoto <[email protected]>2017-12-12 22:21:08 +0900
committerGitHub <[email protected]>2017-12-12 22:21:08 +0900
commit25bee356b1d485f6f06fdbe1836d4512947f5443 (patch)
tree82997eff86eca1409c6ff145ad1872d14036124b /mrbgems/mruby-io/test/file.rb
parentbbb088234395efda23540d30ab5d1cb40f220d82 (diff)
parent5ef8f18e9bab2f5855afe370c2c29df747ed199a (diff)
downloadmruby-25bee356b1d485f6f06fdbe1836d4512947f5443.tar.gz
mruby-25bee356b1d485f6f06fdbe1836d4512947f5443.zip
Merge pull request #3884 from mimaki/mruby-io-test-on-windows
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.rb9
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