Use temporary name for `File#mtime` test to avoid conflicts.

parent 5e7ced07
...@@ -75,12 +75,12 @@ assert('File#mtime') do ...@@ -75,12 +75,12 @@ assert('File#mtime') do
begin begin
now = Time.now.to_i now = Time.now.to_i
mt = 0 mt = 0
File.open('mtime-test', 'w') do |f| File.open("#{$mrbtest_io_wfname}.mtime", 'w') do |f|
mt = f.mtime.to_i mt = f.mtime.to_i
end end
assert_equal true, mt >= now assert_equal true, mt >= now
ensure ensure
File.delete('mtime-test') File.delete("#{$mrbtest_io_wfname}.mtime")
end end
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