summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authoraamine <aamine@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2003-09-29 07:11:50 +0000
committeraamine <aamine@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2003-09-29 07:11:50 +0000
commit6d582bf22e054e39674886f3e0c58044bcd8a6e8 (patch)
tree18f30045b83d3e900a4b482707fe671f2c3e2fb3 /test
parentee299ab2ef2774b140b394777b9edb1d756e0436 (diff)
* 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
Diffstat (limited to 'test')
-rw-r--r--test/fileutils/test_fileutils.rb8
1 files changed, 4 insertions, 4 deletions
diff --git a/test/fileutils/test_fileutils.rb b/test/fileutils/test_fileutils.rb
index 3df34504dc..0c81b65675 100644
--- a/test/fileutils/test_fileutils.rb
+++ b/test/fileutils/test_fileutils.rb
@@ -15,13 +15,13 @@ end
def have_symlink?
begin
- File.symlink 'not_exist', 'not_exist_2'
+ File.symlink 'not_exist', 'symlink_test'
+ return true
rescue NotImplementedError
return false
- rescue
- return true
+ ensure
+ File.unlink 'symlink_test' if File.symlink?('symlink_test')
end
- true # never reach
end