Commit graph

2916 commits

Author SHA1 Message Date
nobu
870d031667 * test/ruby/test_rubyoptions.rb (test_script_from_stdin): by using
a pipe, get rid of not-well-defined behavior after the child
  process terminated in pty.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_2@28489 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-06-29 22:29:12 +00:00
yugui
921f484775 merges r28401 and r28402 from trunk into ruby_1_9_2.
--
* ext/socket/raddrinfo.c (ruby_getaddrinfo__darwin): new workaround for
  getaddrinfo problem on Mac OS X Snow Leopard.  [ruby-core:29427]
  patch by Wataru Kimura.  [ruby-core:30842]
--
add a comment.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_2@28484 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-06-29 14:48:32 +00:00
yugui
21d1a3207a merges r28387 from trunk into ruby_1_9_2.
--
* test/optparse/test_summary.rb: fixed superclass so that it run
  solely.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_2@28482 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-06-29 14:48:17 +00:00
yugui
a90b1b574c merges r28361 from trunk into ruby_1_9_2.
--
* ext/psych/lib/psych/visitors/to_ruby.rb (resolve_klass): fix the
  exception message when attempting to load an unknown class.  Thanks
  nobu! [ruby-dev:41399]

* test/psych/test_psych.rb: test for the exception message

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_2@28481 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-06-29 14:48:12 +00:00
tarui
6e8f7ef966 * test/rdoc/test_rdoc_rdoc.rb: change to bin-mode to write directly.
reported at http://rubyforge.org/tracker/index.php?func=detail&aid=28249&group_id=627&atid=2472
	* test/rdoc/test_rdoc_markup_pre_process.rb: ditto.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_2@28469 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-06-28 17:28:52 +00:00
tarui
6a05e8c566 merge from trunk (r28440)
* ext/dl/lib/dl/func.rb (call): don't overwrite original arguments
	  to defend from GC.

	* test/dl/test_func.rb (test_string): add test for above.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_2@28468 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-06-28 16:45:35 +00:00
tarui
4d97228014 merge from trunk (r28461)
* test/rubygems/gemutilities.rb: check ENV['make'] for make_command.
	* test/rubygems/test_gem_ext_configure_builder.rb: use gemutilities' make_command.
	* test/rubygems/test_gem_ext_ext_conf_builder.rb: ditto.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_2@28466 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-06-28 16:37:07 +00:00
nobu
1f1937111d * include/ruby/io.h, io.c: reverted r21709.
* ruby.c (load_file_internal): nothing to read if EOF reached
  while reading shebang.  [ruby-core:30910]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_2@28451 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-06-27 14:31:19 +00:00
yugui
9694e07f55 merges r28330 from trunk into ruby_1_9_2.
--
* test/ruby/test_io.rb (safe_4): does not use Timeout because
  Timeout.timeout uses Thread#kill which raises SecurityError when
  $SAFE == 4.  based on a patch from Tomoyuki Chikanaga.
  [ruby-dev:41484]

* test/ruby/test_io.rb (test_print_separators): use pipe (test helper
  method) instead of IO.pipe.  [ruby-dev:41484]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_2@28419 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-06-24 02:00:15 +00:00
yugui
fac216efa0 merges r28312 from trunk into ruby_1_9_2.
--
* test/ruby/test_rubyoptions.rb: add a simple test for __END__ and
  DATA.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_2@28417 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-06-24 01:59:18 +00:00
yugui
cacecbfc99 merges r28297 from trunk into ruby_1_9_2.
--
* test/ruby/test_method.rb (test_public_methods_with_extended): test for [ruby-dev:41553].

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_2@28416 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-06-24 01:58:56 +00:00
nobu
b053b97809 * test/ruby/test_regexp.rb (test_dup_warn): read in UTF-8
encoding regardless environment.

* test/ruby/envutil.rb (invoke_ruby): add encoding option.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_2@28397 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-06-23 03:44:55 +00:00
tarui
0418aab850 merge from trunk (r28316)
* lib/drb/drb.rb: raise DRbConnError instead of ArgumentError if too
	  many arguments. [ruby-dev:41481]

	* test/drb/test_drb.rb: ditto.

	* test/drb/drbtest.rb: ditto.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_2@28373 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-06-21 17:02:29 +00:00
wanabe
71fecd39f8 backport r28368:
* eval_error.c (error_print): clear raised_flag while error-printing
  to avoid hang. [ruby-core:27608]

* test/ruby/test_beginendblock.rb (test_endblock_raise): add test for
  above.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_2@28370 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-06-21 15:14:21 +00:00
akr
b7fe55b319 * test/socket/test_socket.rb (test_udp_server): rescue Errno::ENOSYS
for Windows.

* test/socket/test_nonblock.rb (test_sendmsg_nonblock_error): ditto.

  [ruby-dev:41597] reported by Masaya Tarui.



git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_2@28320 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-06-14 13:46:06 +00:00
naruse
1b5c41b460 merge revision(s) 28307:
* enc/trans/utf8_mac.trans (buf_apply): fix for patterns
	  whose result is 2 bytes. [ruby-core:30751]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_2@28308 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-06-12 17:18:01 +00:00
tarui
c09d54a46c * test/open-uri/test_open-uri.rb (test_progress, test_progress_chunked):
fix typo.
	


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_2@28290 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-06-11 21:47:41 +00:00
tarui
c7c14d4157 * test/open-uri/test_open-uri.rb (test_progress, test_progress_chunked):
'size' is a accumulated transferred size in bytes.
	


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_2@28288 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-06-11 21:34:44 +00:00
mame
a260025a02 merges r28279 from trunk into ruby_1_9_2.
---

* lib/rubygems/install_update_options.rb
  (Gem::InstallUpdateOptions#add_install_update_options): deprecate
  --test option which has not worked.  [ruby-core:21714]

* test/rubygems/test_gem_command_manager.rb: ditto.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_2@28281 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-06-11 14:02:18 +00:00
yugui
27a0ad31c4 merges r28187 and r28189 from trunk into ruby_1_9_2.
--
* array.c (rb_ary_product): clear uninitialized elements in temporary
  array.
--
* test/ruby/test_array.rb (test_product): test for r28187.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_2@28277 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-06-11 04:21:18 +00:00
yugui
24d86dc09d merges r28174 from trunk into ruby_1_9_2.
--
add an assertion message.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_2@28276 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-06-11 04:21:12 +00:00
yugui
234358faf8 merges r28157 from trunk into ruby_1_9_2.
--
* test/dl/test_cfunc.rb: test for r28156

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_2@28274 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-06-11 04:21:01 +00:00
yugui
3cc8da5f8c merges r28136 from trunk into ruby_1_9_2.
--
* test/ruby/test_path.rb (test_path): workaround for drive
  letter.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_2@28272 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-06-11 04:20:45 +00:00
yugui
2de959db7b merges r28129 from trunk into ruby_1_9_2.
--
* ext/dl/lib/dl/cparser.rb (parse_ctype): add backwards compatibility
  by supporting "uint" types in the c parser. [ruby-core:29750]
* test/dl/test_cparser.rb: adding a test for "uint" changes.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_2@28271 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-06-11 04:20:35 +00:00
yugui
fce17c541a merges r28105 from trunk into ruby_1_9_2.
--
* file.c (file_expand_path): Refix r28102: this breaks
  r28039. test for [ruby-dev:41429] is added. [ruby-core:30516]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_2@28268 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-06-10 16:46:28 +00:00
akr
6cedcf890a * time.c (rb_localtime_r2): refine localtime overflow check for
FreeBSD 6.4.



git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_2@28256 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-06-10 14:10:25 +00:00
akr
cce257dead * time.c (find_time_t): always outerpolate from past.
[ruby-core:30672] reported by Benoit Daloze.
  backport r28238 from trunk.

* time.c (calc_tm_yday): extracted from timegmw_noleapsecond.
  backport r28236 from trunk.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_2@28254 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-06-10 12:38:05 +00:00
naruse
3c6fac490d merge revision(s) 28245:
------------------------------------------------------------------------
r28245 | naruse | 2010-06-10 13:31:08 +0900 (Thu, 10 Jun 2010) | 4 lines

Revert r28200.

It caused many failures on test-all and following is SEGV.
./ruby -e 'require %!#{"foo/" * 10000}foo!'
------------------------------------------------------------------------


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_2@28247 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-06-10 05:04:20 +00:00
naruse
1da20f3efb merge revision(s) 28128:
------------------------------------------------------------------------
r28128 | nobu | 2010-06-02 23:06:25 +0900 (Wed, 02 Jun 2010) | 2 lines

	* test/ruby/test_{string,symbol}.rb (test_ascii_incomat_inspect):
	  ASCII range characters are no longer escaped.
------------------------------------------------------------------------


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_2@28206 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-06-08 05:27:16 +00:00
nobu
528a1e7c0a * test/ruby/test_proc.rb (test_parameters): require is no longer built-in.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_2@28202 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-06-08 02:08:20 +00:00
nobu
f447135901 * test/rubygems/test_gem_activation.rb: typo.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_2@28201 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-06-07 21:28:54 +00:00
nobu
7fca371db4 * gem_prelude.rb: load full rubygems at LoadError for activation
check.  [ruby-core:29486]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_2@28200 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-06-07 21:27:16 +00:00
nobu
6fa0b50416 * io.c (parse_mode_enc): set set_by_bom bit. [ruby-core:30641]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_2@28199 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-06-07 21:04:56 +00:00
tarui
46880d4762 * test/ruby/test_env.rb (class TestEnv): fix typo.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_2@28186 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-06-06 04:27:29 +00:00
nobu
6e787a638c * array.c (rb_ary_product): need to set the length in order to get
the entries marked.  [ruby-dev:41540]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_2@28184 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-06-06 01:44:38 +00:00
naruse
09e9807a89 merge revision(s) 28174:28178:
* re.c (rb_reg_expr_str): ASCII incompatible strings
	  must always escape or converted.

	* re.c (rb_reg_expr_str): use rb_str_buf_cat_escaped_char
	  when resenc is given: for Regexp#inspect or error message.
	  * re.c (rb_reg_desc): add 'n' for ENCODING_NONE.

	* string.c (sym_inspect): Escape when the symbol is not
	  resulted encoding and not ascii_only. It had escaped
	  ascii-incompatible string, but it is wrong.

	* string.c (rb_str_buf_cat_escaped_char): defined.
	  Splited from rb_str_inspect.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_2@28180 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-06-05 14:16:05 +00:00
naruse
e1c14eabd5 merge revision(s) 28104:
* string.c (rb_str_inspect): inspect as ASCII when the codepoint
	  of a character in Unicode string is ASCII printable one.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_2@28179 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-06-05 14:15:15 +00:00
nobu
f229a0642e * ruby.c (process_options, load_file_internal): $0 seen from
required libraries by -r option should be the main script.
  [ruby-core:23717]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_2@28172 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-06-05 06:59:12 +00:00
nobu
ec38843e53 * test/ruby/envutil.rb (EnvUtil#invoke_ruby): support for child
process env.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_2@28171 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-06-05 06:15:55 +00:00
nobu
46f6b08152 * test/net/imap/test_imap.rb (test_exception_during_shutdown):
need to raise always.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_2@28170 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-06-05 05:11:15 +00:00
nobu
b83fc8735f * ruby.c (process_options): revert r25330, so that $0 can be seen
from required libraries by -r option.  [ruby-core:23717]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_2@28161 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-06-05 00:57:02 +00:00
nobu
fd4417f8fe * file.c (rb_f_test): 'W' should test writable by real uid/git,
not world writable.   [ruby-core:30587]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_2@28160 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-06-04 23:30:48 +00:00
nobu
c8a0b9149c * test/rake/test_win32.rb (Rake::TestWin32): update tests.
[ruby-core:30309]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_2@28145 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-06-03 09:17:49 +00:00
nobu
cb4bba380b * test/io/nonblock/test_flush.rb (test_flush): try pipe and
socketpair.  [ruby-dev:41517]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_2@28143 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-06-03 04:05:20 +00:00
usa
3110939641 * test/gdbm/test_gdbm.rb (test_s_open_create_new): Windows doesn't supports
UNIX like permittions.

* test/gdbm/test_gdbm.rb (test_s_open_error): Errno::EWOULDBLOCK is raised on
  Windows in such case.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_2@28142 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-06-03 01:25:13 +00:00
usa
43fa9ba75b * test/openssl/test_config.rb (test_freeze): skip on Windows because Config.new
needs an argument on it.  When the maintainer returns, this test shall be
  corrected.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_2@28140 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-06-03 01:17:58 +00:00
nobu
9085032099 * test/ruby/test_path.rb (test_path): get rid of blocking on
access to non-existent host.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_2@28135 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-06-02 21:25:18 +00:00
usa
9e27c24d35 merge from trunk (r28125)
* test/dl/test_cfunc.rb (test_last_error): CFunc.last_error is thread local
  variable.  So, if another test calls CFunc#call, it's set.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_2@28126 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-06-02 10:11:30 +00:00
nobu
e0fe9a8eec * regparse.c (onig_syntax_warn): do not use external strings as
printf format.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_2@28108 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-05-31 10:26:01 +00:00
nobu
ea046e22ed * file.c (file_expand_path): check if expanded dname encoding is
compatible with fname, not just copying.  [ruby-core:30516]

* test/ruby/test_beginendblock.rb (test_endblockwarn): needs
  encoding comment.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_2@28102 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-05-30 19:03:47 +00:00