Unverified Commit fd9617ca authored by Yukihiro "Matz" Matsumoto's avatar Yukihiro "Matz" Matsumoto Committed by GitHub

Merge pull request #4052 from take-cheeze/fix_mtime_test

Use temporary file name for `File#mtime` test to avoid conflicts.
parents 1829b769 8f808cc9
......@@ -75,12 +75,12 @@ assert('File#mtime') do
begin
now = Time.now.to_i
mt = 0
File.open('mtime-test', 'w') do |f|
File.open("#{$mrbtest_io_wfname}.mtime", 'w') do |f|
mt = f.mtime.to_i
end
assert_equal true, mt >= now
ensure
File.delete('mtime-test')
File.delete("#{$mrbtest_io_wfname}.mtime")
end
end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment