diff options
Diffstat (limited to 'benchmark/driver.rb')
-rw-r--r-- | benchmark/driver.rb | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/benchmark/driver.rb b/benchmark/driver.rb index cbc72cf604..a8b524d926 100644 --- a/benchmark/driver.rb +++ b/benchmark/driver.rb @@ -238,6 +238,12 @@ class BenchmarkDriver result end + unless defined?(File::NULL) + if File.exist?('/dev/null') + File::NULL = '/dev/null' + end + end + def measure executable, file cmd = "#{executable} #{@ruby_arg} #{file}" |