mirror of
https://github.com/ruby/ruby.git
synced 2025-08-15 13:39:04 +02:00
Fix a benchmark to avoid leaving a garbage file
This commit is contained in:
parent
2a57e6e6ed
commit
76f0eec20f
1 changed files with 3 additions and 0 deletions
|
@ -12,6 +12,9 @@ prelude: |
|
||||||
relative_dir = 'b/c'
|
relative_dir = 'b/c'
|
||||||
absolute_dir = File.join(pwd, relative_dir)
|
absolute_dir = File.join(pwd, relative_dir)
|
||||||
file_dir = 'c'
|
file_dir = 'c'
|
||||||
|
teardown: |
|
||||||
|
require 'fileutils'
|
||||||
|
FileUtils.rm_rf('b')
|
||||||
benchmark:
|
benchmark:
|
||||||
relative_nil: "f.realpath(relative, nil)"
|
relative_nil: "f.realpath(relative, nil)"
|
||||||
absolute_nil: "f.realpath(absolute, nil)"
|
absolute_nil: "f.realpath(absolute, nil)"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue