mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* test/fileutils/test_fileutils.rb: File.link raises EINVAL on Win9x. [ruby-dev:22713]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5685 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
08763eed7f
commit
0c30c6836b
2 changed files with 7 additions and 2 deletions
|
@ -1,3 +1,8 @@
|
||||||
|
Fri Feb 13 05:18:58 2004 Minero Aoki <aamine@loveruby.net>
|
||||||
|
|
||||||
|
* test/fileutils/test_fileutils.rb: File.link raises EINVAL on
|
||||||
|
Win9x. [ruby-dev:22713]
|
||||||
|
|
||||||
Thu Feb 12 21:49:00 2004 Gavin Sinclair <gsinclair@soyabean.com.au>
|
Thu Feb 12 21:49:00 2004 Gavin Sinclair <gsinclair@soyabean.com.au>
|
||||||
|
|
||||||
* lib/ftools.rb: documented
|
* lib/ftools.rb: documented
|
||||||
|
|
|
@ -41,7 +41,7 @@ begin
|
||||||
File.open('linktmp', 'w') {|f| f.puts 'dummy' }
|
File.open('linktmp', 'w') {|f| f.puts 'dummy' }
|
||||||
File.link 'linktmp', 'linktest'
|
File.link 'linktmp', 'linktest'
|
||||||
HAVE_HARDLINK = true
|
HAVE_HARDLINK = true
|
||||||
rescue NotImplementedError
|
rescue NotImplementedError, Errno::EINVAL
|
||||||
HAVE_HARDLINK = false
|
HAVE_HARDLINK = false
|
||||||
ensure
|
ensure
|
||||||
File.unlink 'linktest' if File.exist?('linktest')
|
File.unlink 'linktest' if File.exist?('linktest')
|
||||||
|
@ -68,7 +68,7 @@ class TestFileUtils
|
||||||
|
|
||||||
def setup
|
def setup
|
||||||
@prevdir = Dir.pwd
|
@prevdir = Dir.pwd
|
||||||
tmproot = "#{Dir.tmpdir}/fileutils.rb.#{$$}"
|
tmproot = TMPROOT
|
||||||
Dir.mkdir tmproot unless File.directory?(tmproot)
|
Dir.mkdir tmproot unless File.directory?(tmproot)
|
||||||
Dir.chdir tmproot
|
Dir.chdir tmproot
|
||||||
my_rm_rf 'data'; Dir.mkdir 'data'
|
my_rm_rf 'data'; Dir.mkdir 'data'
|
||||||
|
|
Loading…
Add table
Reference in a new issue