1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00
ruby--ruby/test
naruse 4870feb31a * lib/benchmark.rb: merge eregon/benchmark.
https://github.com/eregon/ruby/tree/benchmark
  patched by Benoit Daloze. [ruby-core:37593] [Bug #4940]

* lib/benchmark (Benchmark#bmbm): bmbm should be consistent with bm
  for the return value.

* test/benchmark: remove preemptive test instead of skipping
  I removed the preemptive test I wrote for Feature #4197.
  I'll add it back when the implementation will be able to satisfy it.

* lib/benchmark (Benchmark#bmbm): remove useless explicit call,
  #format is an alias of #to_s test/benchmark: add a test for
  format of long time.

* lib/benchmark: fix label width: always add 1 to ensure there is a
  space delimiter even with times over 100s
  When I asked for Feature #4197, I wanted to make delimiting spaces
  consistent for #bm and #bmbm.
  But with times over 100s, the output contains no space between the
  label and the first time (user).
  Now both ensure there is always a space, even if that means 3 spaces
  with times under 10s (because it is formatted as %10.6f)

* test/benchmark: let labels be a constant
  lib/benchmark (Benchmark#realtime): avoid creating an unused Proc
  lib/benchmark (Benchmark#benchmark): use ensure clause to restore
  STDOUT.sync, as in #bmbm

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32269 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-06-28 06:09:46 +00:00
..
-ext- * thread.c (rb_wait_for_single_fd): Fix wrong return value. 2011-05-04 10:02:06 +00:00
base64
benchmark * lib/benchmark.rb: merge eregon/benchmark. 2011-06-28 06:09:46 +00:00
bigdecimal * ext/bigdecimal/bigdecimal.c (BigMath_s_log): move BigMath.log from 2011-06-27 16:26:09 +00:00
cgi Prevent timing failure. 2010-11-15 02:37:19 +00:00
coverage * test/coverage/test_coverage.rb: add a test for restart. a patch 2011-06-13 16:12:52 +00:00
csv * lib/csv.rb: Enhance each() to support Enumerator. 2011-05-26 15:35:06 +00:00
date * test/date/test_switch_hitter.rb: added a test. 2011-06-26 14:50:09 +00:00
dbm
digest * test/with_different_ofs.rb (DifferentOFS): should not affect 2010-12-26 02:15:55 +00:00
dl * remove trailing spaces. 2011-05-15 11:55:52 +00:00
drb fix [Bug #4409]. add DRbServer#here? 2011-06-27 15:18:22 +00:00
erb
etc * test/etc/test_etc.rb (TestEtc#test_get{pw,gr}nam): skip entries 2011-06-26 16:34:20 +00:00
fiddle * test/dl/test_base.rb (Fiddle::LIBC_SO): its always msvc*.dll on 2011-05-12 05:51:55 +00:00
fileutils NetBSD also denies to set sticky bit against regular file. 2011-05-29 17:01:27 +00:00
gdbm * test/gdbm/test_gdbm.rb (TestGDBM#test_s_open_no_create, 2011-01-28 14:23:04 +00:00
iconv * test/iconv/utils.rb: suppress warning message. 2010-11-28 13:25:58 +00:00
io * test/io/console/test_io_console.rb (TestIO_Console#test_noctty): 2011-06-17 22:34:07 +00:00
irb * test/irb/test_option.rb (test_end_of_option): don't read .irbrc. Bug#4138 2010-12-08 22:00:59 +00:00
json * remove trailing spaces. 2011-05-15 11:55:52 +00:00
logger * remove trailing spaces. 2011-05-15 11:55:52 +00:00
matrix
minitest Imported minitest 2.2.2 (r6281) 2011-06-01 22:34:09 +00:00
misc Run tests only for emacs 23+. 2011-06-15 03:28:47 +00:00
mkmf * lib/mkmf.rb (find_executable0): should exclude directories. 2011-03-11 09:42:46 +00:00
monitor
net * lib/net/http.rb (Net::HTTP.post_form): Do not ignore query part of 2011-06-21 17:44:44 +00:00
nkf * ext/nkf/lib/kconv.rb (String#kconv): fix typo and update rdoc. 2010-12-07 11:47:39 +00:00
objspace * ext/objspace/objspace.c (ObjectSpace.memsize_of_all): rename 2010-10-28 20:23:21 +00:00
open-uri * remove trailing spaces. 2011-05-15 11:55:52 +00:00
openssl * ext/openssl/ossl_x509name.c: Add X509::Name#hash_old as a wrapper 2011-06-23 13:51:55 +00:00
optparse * lib/optparse.rb: shell completion support for zsh. based on 2010-11-19 12:07:09 +00:00
ostruct * lib/ostruct.rb (method_missing): Handle [] and []= correctly. 2011-05-27 15:59:02 +00:00
pathname * test/ruby/test_io.rb (test_copy_stream_socket): wait a child process 2011-06-15 03:36:57 +00:00
psych * ext/psych/lib/psych/visitors/to_ruby.rb: Fix cyclic references of 2011-06-21 18:22:54 +00:00
rake * lib/rake: Update rake to fix some bugs and hide deprecated features 2011-06-28 02:45:29 +00:00
rdoc * lib/rdoc: Update to RDoc 3.7 (final) 2011-06-28 02:28:25 +00:00
readline * remove trailing spaces. 2011-05-15 11:55:52 +00:00
resolv
rexml * lib/rexml/formatters/pretty.rb 2011-06-11 07:29:48 +00:00
rinda
ripper * parse.y (parser_parse_string): flush delayed token. based on a 2011-06-13 14:38:26 +00:00
rss * lib/rexml/encoding.rb: use Ruby native encoding mechnism. [ruby-dev:42464] 2010-10-30 12:10:56 +00:00
ruby * vm_insnhelper.c (vm_search_superclass): avoid control frame 2011-06-25 15:05:37 +00:00
rubygems * lib/rubygems/user_interaction.rb (Gem::StreamUI#tty?): IO#tty? of 2011-06-07 09:56:30 +00:00
scanf
sdbm
socket * test/socket/test_unix.rb: don't use Thread.abort_on_exception. 2011-06-13 14:12:23 +00:00
stringio * ext/stringio/stringio.c (strio_each): 2011-04-09 14:28:06 +00:00
strscan
syck Copy YAML::Store to Syck::Store to keep it from yamler. 2011-06-14 01:06:41 +00:00
testunit * test/testunit/test_parallel.rb: Fix Regexp for test. 2011-06-16 11:24:23 +00:00
thread * remove trailing spaces. 2011-05-15 11:55:52 +00:00
uri * lib/net/http.rb (URI::HTTP#request_uri): return nil when the uri 2011-06-03 00:32:25 +00:00
webrick * lib/webrick/httprequest.rb (setup_forwarded_info): Parsing request 2011-06-24 11:05:59 +00:00
win32ole * remove trailing spaces. 2011-05-15 11:55:52 +00:00
xmlrpc * lib/xmlrpc/parser.rb (FaultException): fix to_s and inspect 2011-05-26 06:44:48 +00:00
zlib * ext/zlib/zlib.c (gzfile_reader_get_unused): no need to dup 2011-02-03 15:15:04 +00:00
inlinetest.rb
profile_test_all.rb property. 2010-10-29 23:50:57 +00:00
runner.rb * test/runner.rb: set Gem::TestCase's @@project_dir. 2011-03-22 01:59:18 +00:00
test_cmath.rb * lib/cmath.rb (CMath.cbrt): returns the principal value of the cube 2011-06-13 05:36:59 +00:00
test_delegate.rb
test_find.rb
test_ipaddr.rb
test_mathn.rb
test_mutex_m.rb * lib/optparse.rb: suppress a warning. 2010-08-10 12:02:52 +00:00
test_open3.rb
test_pp.rb
test_prettyprint.rb
test_prime.rb * test/syck/test_string.rb (Syck::TestString#test_non_binary_string): 2011-02-13 00:56:44 +00:00
test_pstore.rb * remove trailing spaces. 2011-05-15 11:55:52 +00:00
test_pty.rb * test/test_pty.rb (TestPTY::test_getpty_nonexistent): ditto. 2010-09-24 07:37:26 +00:00
test_securerandom.rb * test/test_securerandom.rb: Add testcase. This testcase does NOT aim 2011-06-16 10:32:51 +00:00
test_set.rb
test_shellwords.rb
test_singleton.rb * test/test_singleton.rb: Add tests from lib/singleton.rb. Patch by 2011-05-17 18:15:10 +00:00
test_syslog.rb Skip syslog tests that rely on LOG_PERROR unless it's defined 2011-03-25 11:06:57 +00:00
test_tempfile.rb * test/test_tempfile.rb: simply ignore platform depedent testcases 2011-04-04 02:51:17 +00:00
test_time.rb * strftime.c (rb_strftime_with_timespec): improved style consistency. 2011-05-31 03:59:36 +00:00
test_timeout.rb
test_tracer.rb Reduced gem_prelude to just require rubygems. Reviewed by Evan Phoenix 2011-01-14 02:02:12 +00:00
test_tsort.rb
with_different_ofs.rb * test/with_different_ofs.rb (DifferentOFS): should not affect 2010-12-26 02:15:55 +00:00