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

This commit is contained in:
take-cheeze
2018-06-20 21:42:48 +09:00
parent 5e7ced0785
commit 8f808cc9b1
+2 -2
View File
@@ -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