mirror of
https://github.com/ruby/ruby.git
synced 2026-01-27 04:24:23 +00:00
Create the test file under the created temporary directory
Fixes https://github.com/ruby/ruby/pull/4255
This commit is contained in:
parent
ef88225886
commit
a6b5d70bca
@ -680,7 +680,7 @@ class TestFileExhaustive < Test::Unit::TestCase
|
||||
assert_equal(t + 1, File.atime(zerofile))
|
||||
assert_equal(t + 2, File.mtime(zerofile))
|
||||
Dir.mktmpdir do |dir|
|
||||
Dir.chdir do
|
||||
Dir.chdir(dir) do
|
||||
path = "foo\u{30b3 30d4 30fc}"
|
||||
File.write(path, "") rescue next
|
||||
assert_equal(1, File.utime(nil, nil, path))
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user