mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
Skip "File.readlink fails" test on MSVC
When MSVC, "File.readlink fails with non-symlink" test was failed even if raising NotImplementedError
This commit is contained in:
@@ -107,6 +107,7 @@ end
|
|||||||
|
|
||||||
assert("File.readlink fails with non-symlink") do
|
assert("File.readlink fails with non-symlink") do
|
||||||
begin
|
begin
|
||||||
|
e2 = nil
|
||||||
assert_raise(RuntimeError) {
|
assert_raise(RuntimeError) {
|
||||||
begin
|
begin
|
||||||
File.readlink($mrbtest_io_rfname)
|
File.readlink($mrbtest_io_rfname)
|
||||||
@@ -115,8 +116,11 @@ assert("File.readlink fails with non-symlink") do
|
|||||||
raise RuntimeError, "SystemCallError converted to RuntimeError"
|
raise RuntimeError, "SystemCallError converted to RuntimeError"
|
||||||
end
|
end
|
||||||
raise e
|
raise e
|
||||||
|
rescue NotImplementedError => e
|
||||||
|
e2 = e
|
||||||
end
|
end
|
||||||
}
|
}
|
||||||
|
raise e2 if e2
|
||||||
rescue NotImplementedError => e
|
rescue NotImplementedError => e
|
||||||
skip e.message
|
skip e.message
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user