diff --git a/ChangeLog b/ChangeLog index c9a4cd2726..98f6c9855f 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +Mon Jun 13 03:07:38 2011 NARUSE, Yui + + * test/benchmark/test_benchmark.rb (capture_output): + replace '-' as space. On NetBSD, subtract between two Process.times + after and before the short process may return negative value like: + t0=Process.times; yield; t1=Process.times; p t1.utime-t0.utime + Mon Jun 13 02:40:23 2011 Martin Bosslet * test/openssl/test_pkey_dsa.rb: Test for DSA#syssign/sysverify. diff --git a/test/benchmark/test_benchmark.rb b/test/benchmark/test_benchmark.rb index 8e369fdb1f..b34884fdc6 100644 --- a/test/benchmark/test_benchmark.rb +++ b/test/benchmark/test_benchmark.rb @@ -36,7 +36,7 @@ describe Benchmark do end def capture_output - capture_io { yield }.first.gsub(/\d\.\d{6}/, '--time--') + capture_io { yield }.first.gsub(/[ \-]\d\.\d{6}/, ' --time--') end def capture_bench_output(type, *args, &block)