1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00
ruby--ruby/test
ko1 fd7ac9f3c9 * thread_tools.c: add Queue#close(exception=false) and
SizedQueue#close(exception=false).
  [Feature #10600]
  Trying to deq from a closed empty queue return nil
  if exception parameter equals to false (default).
  If exception parameter is truthy, it raises
  ClosedQueueError (< StopIteration).
  ClosedQueueError inherits StopIteration so that you can write:
    loop{ e = q.deq; (using e) }
  Trying to close a closed queue raises ClosedQueueError.
  Blocking threads to wait deq for Queue and SizedQueue will be
  restarted immediately by returning nil (exception=false) or
  raising a ClosedQueueError (exception=true).
  Blocking threads to wait enq for SizedQueue will be
  restarted by raising a ClosedQueueError immediately.
  The above specification is not proposed specification, so that
  we need to continue discussion to conclude specification this
  method.
* test/thread/test_queue.rb: add tests originally written by
  John Anderson and modify detailed behavior.



git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@51699 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-08-26 22:59:32 +00:00
..
-ext- string.c: fill the terminator 2015-07-25 02:05:34 +00:00
base64 * lib/base64.rb: make urlsafe mode user-friendly. 2015-02-13 12:31:30 +00:00
benchmark
bigdecimal test_bigdecimal.rb: adjust 2015-05-27 10:56:33 +00:00
cgi * lib/cgi/cookie.rb: Implement HttpOnly flag for cookies. 2015-05-14 23:27:01 +00:00
coverage * ext/coverage/coverage.c: Add Coverage.peek_result. Allows you to 2015-02-13 15:53:47 +00:00
csv * lib/csv.rb: accept to use Range object for row selection. 2015-06-17 01:58:34 +00:00
date
dbm * test/ruby/test_object.rb: Specify an exception class for rescue clause. 2014-11-11 15:28:17 +00:00
digest use assert_raise 2015-06-02 02:18:44 +00:00
drb use Timeout.timeout 2015-07-13 10:07:01 +00:00
dtrace * test/lib/envutil.rb: Moved from test/ruby/. 2014-11-13 16:05:37 +00:00
erb * include/ruby/ruby.h: $SAFE=2 is now obsolete. 2015-06-18 14:21:03 +00:00
etc test_etc.rb: relax comparisons 2015-01-10 07:15:12 +00:00
excludes suppress warning: ambiguous first argument; put parentheses or a space even after `/' operator 2015-06-13 08:42:02 +00:00
fiddle * include/ruby/ruby.h: $SAFE=2 is now obsolete. 2015-06-18 14:21:03 +00:00
fileutils test_fileutils.rb: improve my_rm_rf 2015-08-26 08:11:58 +00:00
gdbm * test/gdbm/test_gdbm.rb: Added test for each_key called without a block. 2014-12-17 01:50:14 +00:00
io use Timeout.timeout 2015-07-13 10:07:01 +00:00
irb * test/lib/envutil.rb: Moved from test/ruby/. 2014-11-13 16:05:37 +00:00
json generator.c: allocate structs with wrapper 2015-05-28 07:17:55 +00:00
lib envutil.rb: abort at timeout 2015-08-12 03:50:59 +00:00
logger use assert_raise 2015-06-02 02:18:44 +00:00
matrix test_matrix.rb: Refactor on Matrix#determinant 2015-05-08 13:57:27 +00:00
minitest unit.rb: no insult method 2015-01-04 02:04:31 +00:00
misc
mkmf mkmf/base.rb: clean up tmpdir 2015-03-03 17:01:13 +00:00
monitor * lib/monitor.rb (mon_try_enter, mon_enter): should reset @mon_count 2015-05-18 04:56:22 +00:00
net * lib/net/http/response.rb (Net::HTTPResponse::Inflater#finish): 2015-08-01 08:23:32 +00:00
nkf
objspace * ext/objspace/objspace.c: add a new method ObjectSpace.count_symbols. 2015-08-21 11:30:24 +00:00
open-uri use assert_raise 2015-06-02 02:18:44 +00:00
openssl * test/openssl/test_ssl_session.rb: Fix tests so that they take in to 2015-08-20 21:39:54 +00:00
optparse use assert_raise 2015-06-02 02:18:44 +00:00
ostruct Revert GH-808 2015-01-08 07:07:59 +00:00
pathname test_pathname.rb: skip EACCES 2015-08-26 14:49:07 +00:00
psych * ext/psych/*: update to Psych 2.0.14 2015-08-21 17:55:23 +00:00
rdoc parse.y: optional superclass 2015-08-11 02:53:31 +00:00
readline * test/readline/test_readline.rb: Restore environment variables: 2015-03-13 03:29:43 +00:00
resolv use Timeout.timeout 2015-07-13 10:07:01 +00:00
rexml use assert_raise 2015-06-02 02:18:44 +00:00
rinda * test/rinda/test_rinda.rb (RingIPv6#prepare_ipv6): prevent to use 2015-07-24 11:29:49 +00:00
ripper parse.y: refine message for gvar w/o identitirs 2015-05-13 02:13:43 +00:00
rss
ruby re.c: fix wchar match at EOS 2015-08-26 01:52:04 +00:00
rubygems test/rubygems: clear hooks 2015-08-13 14:43:14 +00:00
scanf
sdbm * test/lib/envutil.rb: Moved from test/ruby/. 2014-11-13 16:05:37 +00:00
shell * test/lib/envutil.rb: Moved from test/ruby/. 2014-11-13 16:05:37 +00:00
socket test/socket/test_nonblock.rb: increase buffer sizes to OpenBSD limits 2015-07-21 08:17:48 +00:00
stringio Simple testing for StringIO#sysread 2015-07-11 21:42:27 +00:00
strscan
syslog
testunit use Timeout.timeout 2015-07-13 10:07:01 +00:00
thread * thread_tools.c: add Queue#close(exception=false) and 2015-08-26 22:59:32 +00:00
uri * lib/uri/rfc2396_parser.rb (initialize_pattern): 2015-05-19 02:34:47 +00:00
webrick * test/webrick/test_utils.rb (TestWEBrickUtils#test_nested_timeout_outer): seems 2015-07-22 09:04:57 +00:00
win32ole * test/win32ole/test_word.rb: use skip method to skip test. 2015-02-10 22:54:39 +00:00
xmlrpc use assert_raise 2015-06-02 02:18:44 +00:00
zlib use assert_raise 2015-06-02 02:18:44 +00:00
colors default colors 2015-05-17 00:50:11 +00:00
runner.rb * lib/rake/*: Gemify rake [fix GH-862][Feature #11025] 2015-04-04 12:31:31 +00:00
test_abbrev.rb
test_cmath.rb * test/test_cmath.rb: Adding parens to suppress warnings. 2015-06-13 18:34:13 +00:00
test_delegate.rb
test_find.rb
test_ipaddr.rb use assert_raise 2015-06-02 02:18:44 +00:00
test_mathn.rb * test/lib/envutil.rb: Moved from test/ruby/. 2014-11-13 16:05:37 +00:00
test_mutex_m.rb
test_observer.rb * test/test_observer.rb: add tests for Observable module. 2015-03-26 01:05:18 +00:00
test_open3.rb Add a test. 2015-01-08 15:38:13 +00:00
test_pp.rb * test/test_pp.rb (PPTestModule::PPFileStatTest): test for r48719. 2014-12-05 19:48:15 +00:00
test_prettyprint.rb
test_prime.rb test: refine assertions 2015-06-25 05:26:31 +00:00
test_pstore.rb * test/lib/envutil.rb: Moved from test/ruby/. 2014-11-13 16:05:37 +00:00
test_pty.rb * test/lib/envutil.rb: Moved from test/ruby/. 2014-11-13 16:05:37 +00:00
test_rbconfig.rb
test_securerandom.rb test: refine assertions 2015-06-25 05:26:31 +00:00
test_set.rb * lib/set.rb: Make Set#each and SortedSet#each generate a sized 2015-06-15 05:37:38 +00:00
test_shellwords.rb
test_singleton.rb use assert_raise 2015-06-02 02:18:44 +00:00
test_syslog.rb use assert_raise 2015-06-02 02:18:44 +00:00
test_tempfile.rb test_tempfile.rb: use assert_predicate 2015-05-31 04:45:10 +00:00
test_time.rb add tests for strptime("%s.%N"). 2015-03-01 00:13:11 +00:00
test_timeout.rb use Timeout.timeout 2015-07-13 10:07:01 +00:00
test_tmpdir.rb Add a test for Dir.mktmpdir(nil) [ruby-core:66943] [Bug #10616]. 2014-12-20 08:58:30 +00:00
test_tracer.rb test: refine assertions 2015-06-25 05:26:31 +00:00
test_tsort.rb * lib/tsort.rb: Returns an enumerator if no block is given. 2014-11-26 10:46:50 +00:00
test_unicode_normalize.rb * test/test_unicode_normalize.rb: get rid of a warning. 2015-06-14 00:59:23 +00:00
test_weakref.rb test/test_weakref.rb: increase timeout [Bug #10618] 2014-12-19 20:20:33 +00:00
test_win32api.rb * ext/win32/Win32API.rb (initialize): accept both a string and an array 2015-02-25 13:08:01 +00:00