* test/fileutils/test_fileutils.rb: clean up temporaly symlink. [ruby-dev:21420]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4619 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
ee299ab2ef
commit
6d582bf22e
@ -1,3 +1,8 @@
|
|||||||
|
Mon Sep 29 16:11:23 2003 Minero Aoki <aamine@loveruby.net>
|
||||||
|
|
||||||
|
* test/fileutils/test_fileutils.rb: clean up temporaly symlink.
|
||||||
|
[ruby-dev:21420]
|
||||||
|
|
||||||
Mon Sep 29 11:16:55 2003 Yukihiro Matsumoto <matz@ruby-lang.org>
|
Mon Sep 29 11:16:55 2003 Yukihiro Matsumoto <matz@ruby-lang.org>
|
||||||
|
|
||||||
* eval.c (rb_thread_atfork): wrong format specifier.
|
* eval.c (rb_thread_atfork): wrong format specifier.
|
||||||
|
@ -15,13 +15,13 @@ end
|
|||||||
|
|
||||||
def have_symlink?
|
def have_symlink?
|
||||||
begin
|
begin
|
||||||
File.symlink 'not_exist', 'not_exist_2'
|
File.symlink 'not_exist', 'symlink_test'
|
||||||
|
return true
|
||||||
rescue NotImplementedError
|
rescue NotImplementedError
|
||||||
return false
|
return false
|
||||||
rescue
|
ensure
|
||||||
return true
|
File.unlink 'symlink_test' if File.symlink?('symlink_test')
|
||||||
end
|
end
|
||||||
true # never reach
|
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user