diff options
| author | take-cheeze <[email protected]> | 2018-06-20 21:42:48 +0900 |
|---|---|---|
| committer | take-cheeze <[email protected]> | 2018-06-20 21:42:48 +0900 |
| commit | 8f808cc9b148710617e840f8ff589709b7fc1fff (patch) | |
| tree | 9ab74e445e1489e25d9d6de8b8417d43d18b0b97 | |
| parent | 5e7ced0785790a3070bc81e8b2fd2326151c31b9 (diff) | |
| download | mruby-8f808cc9b148710617e840f8ff589709b7fc1fff.tar.gz mruby-8f808cc9b148710617e840f8ff589709b7fc1fff.zip | |
Use temporary name for `File#mtime` test to avoid conflicts.
| -rw-r--r-- | mrbgems/mruby-io/test/file.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/mrbgems/mruby-io/test/file.rb b/mrbgems/mruby-io/test/file.rb index dc6fe369a..ab4678fe9 100644 --- a/mrbgems/mruby-io/test/file.rb +++ b/mrbgems/mruby-io/test/file.rb @@ -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 |
