diff options
| author | Yukihiro "Matz" Matsumoto <[email protected]> | 2017-12-09 14:16:20 +0900 |
|---|---|---|
| committer | GitHub <[email protected]> | 2017-12-09 14:16:20 +0900 |
| commit | bda273f35d28215c9c2a4abc1965f46ed39ba32a (patch) | |
| tree | 72283958e1c320dc4c9ebdd13fc12a381b1a207e | |
| parent | 6bc38f4637f37918ef9979e7bb1bea5d3f91cedf (diff) | |
| parent | 0ded91c806b66a419c2e683095b3fd124a4efee7 (diff) | |
| download | mruby-bda273f35d28215c9c2a4abc1965f46ed39ba32a.tar.gz mruby-bda273f35d28215c9c2a4abc1965f46ed39ba32a.zip | |
Merge pull request #3877 from bamchoh/patch-3
Skip "File.readlink fails" test on MSVC
| -rw-r--r-- | mrbgems/mruby-io/test/file.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/mrbgems/mruby-io/test/file.rb b/mrbgems/mruby-io/test/file.rb index 941e91ac4..d76092f08 100644 --- a/mrbgems/mruby-io/test/file.rb +++ b/mrbgems/mruby-io/test/file.rb @@ -107,6 +107,7 @@ end assert("File.readlink fails with non-symlink") do begin + e2 = nil assert_raise(RuntimeError) { begin File.readlink($mrbtest_io_rfname) @@ -115,8 +116,11 @@ assert("File.readlink fails with non-symlink") do raise RuntimeError, "SystemCallError converted to RuntimeError" end raise e + rescue NotImplementedError => e + e2 = e end } + raise e2 if e2 rescue NotImplementedError => e skip e.message end |
