diff options
| author | aamine <aamine@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2004-02-12 20:21:24 +0000 |
|---|---|---|
| committer | aamine <aamine@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2004-02-12 20:21:24 +0000 |
| commit | 2f43d4b20eb9e41a40fe3adc29c7939d540bf3be (patch) | |
| tree | d3ed553e37f32c07262b43781e2ed5aee2712c79 /test/fileutils | |
| parent | 4ed80e5dc785cf3c98635648d62cc1779aae123d (diff) | |
| download | ruby-2f43d4b20eb9e41a40fe3adc29c7939d540bf3be.tar.gz ruby-2f43d4b20eb9e41a40fe3adc29c7939d540bf3be.tar.xz ruby-2f43d4b20eb9e41a40fe3adc29c7939d540bf3be.zip | |
* test/fileutils/test_fileutils.rb: File.link raises EINVAL on Win9x. [ruby-dev:22713]
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@5685 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/fileutils')
| -rw-r--r-- | test/fileutils/test_fileutils.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/fileutils/test_fileutils.rb b/test/fileutils/test_fileutils.rb index 50f0ed16b..5df027e85 100644 --- a/test/fileutils/test_fileutils.rb +++ b/test/fileutils/test_fileutils.rb @@ -41,7 +41,7 @@ begin File.open('linktmp', 'w') {|f| f.puts 'dummy' } File.link 'linktmp', 'linktest' HAVE_HARDLINK = true -rescue NotImplementedError +rescue NotImplementedError, Errno::EINVAL HAVE_HARDLINK = false ensure File.unlink 'linktest' if File.exist?('linktest') @@ -68,7 +68,7 @@ class TestFileUtils def setup @prevdir = Dir.pwd - tmproot = "#{Dir.tmpdir}/fileutils.rb.#{$$}" + tmproot = TMPROOT Dir.mkdir tmproot unless File.directory?(tmproot) Dir.chdir tmproot my_rm_rf 'data'; Dir.mkdir 'data' |
