diff options
| author | aamine <aamine@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2003-09-29 07:11:50 +0000 |
|---|---|---|
| committer | aamine <aamine@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2003-09-29 07:11:50 +0000 |
| commit | 7e08f8efd84cf2d65a9ae627b137b2c128eb90ea (patch) | |
| tree | 18f30045b83d3e900a4b482707fe671f2c3e2fb3 | |
| parent | 1c0729ee0134cdc2a6ec9041717912d2e3ec1ad3 (diff) | |
| download | ruby-7e08f8efd84cf2d65a9ae627b137b2c128eb90ea.tar.gz ruby-7e08f8efd84cf2d65a9ae627b137b2c128eb90ea.tar.xz ruby-7e08f8efd84cf2d65a9ae627b137b2c128eb90ea.zip | |
* test/fileutils/test_fileutils.rb: clean up temporaly symlink. [ruby-dev:21420]
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@4619 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
| -rw-r--r-- | ChangeLog | 5 | ||||
| -rw-r--r-- | test/fileutils/test_fileutils.rb | 8 |
2 files changed, 9 insertions, 4 deletions
@@ -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> * eval.c (rb_thread_atfork): wrong format specifier. diff --git a/test/fileutils/test_fileutils.rb b/test/fileutils/test_fileutils.rb index 3df34504d..0c81b6567 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 |
