1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00
Commit graph

19 commits

Author SHA1 Message Date
nobu
da47bbd1db * hash.c (ruby_setenv): raise if putenv and SetEnvironmentVariable
failed, because of the restriction of the size on Windows.
  based on a patch from Peter Weldon at [ruby-core:32304].  fix:
  Bug#3812, [ruby-core:32250]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29225 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-09-11 07:47:44 +00:00
nobu
b9432e7630 * load.c (rb_provide_feature): clarify error message for frozen
$LOADED_FEATURES.  based on a patch from Run Paint Run Run at
  [ruby-core:31913].

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29135 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-08-29 03:51:39 +00:00
nobu
946a037e30 * load.c (load_failed): should honor encoding. [ruby-core:31915]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29133 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-08-29 03:20:04 +00:00
nobu
22223dc6dd * test/ruby/test_require.rb (test_require_too_long_filename):
clear -w option.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28930 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-08-08 21:51:02 +00:00
usa
cb7a106c21 * test_require.rb (test_require_with_unc): test for r28473.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28475 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-06-29 06:22:08 +00:00
usa
fd328d8ea1 * test/ruby/test_require.rb (test_relative_symlink): skip if symlink is not
implemented.

* test/ruby/test_file_exhaustive.rb (test_stat, test_expand_path): ignore tests
  about nlink on Windows because its not imeplented because of performance
  problem.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27617 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-05-04 16:02:17 +00:00
mame
e02f7f79c2 * iseq.c (set_relation): do not use top_wrapper as bottom of cref,
which caused constant lookup error when "wrapped load" is used;
  instead, use Object as bottom, and push top_wrapper on Object.
  [ruby-core:25039]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27514 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-04-27 13:42:29 +00:00
mame
f3448ded9d * test/ruby/test_require.rb (test_define_class): expect TypeError
instead of NameError.  [ruby-core:27504]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26368 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-01-21 16:06:39 +00:00
akr
8001de1434 add ML ref.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26292 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-01-12 00:59:27 +00:00
akr
853dd6cabe * prelude.rb (require_relative): use File.realpath. [ruby-dev:40040]
* include/ruby/intern.h: declare rb_dir_getwd.

* dir.c (rb_dir_getwd): copied from dir_s_getwd to export.
  (dir_s_getwd): use rb_dir_getwd.

* file.c (rb_file_s_realpath): new method File.realpath.
  (rb_file_s_realdirpath): new method File.realdirpath.

* lib/pathname.rb (Pathname#realpath): use File.realpath.
  (Pathname#realdirpath): use File.realdirpath.



git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26290 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-01-12 00:32:22 +00:00
nobu
c8f6174008 * test/ruby/test_require.rb (test_relative): test without current
directory.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24874 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-09-12 15:52:03 +00:00
nobu
481a6476ce * test/ruby/test_require.rb (test_relative): tests for require_relative.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24818 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-09-09 07:21:49 +00:00
matz
cadee06b2a * test/ruby/test_rubyoptions.rb (TestRubyOptions#test_rubyopt):
test suite add '.' to RUBYLIB.  remove checks.

* test/ruby/test_require.rb (TestRequire#test_tainted_loadpath):
  the default tempdir directory /tmp is world writable, so
  SecrurityError would be raised.  check removed.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23860 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-06-26 12:48:15 +00:00
yugui
1d551324bb adds a test case for r21955 and r21917.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@21974 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-02-02 11:33:08 +00:00
usa
45ea81a492 * test/ruby/test_require.rb (test_require_too_long_filename): too long
commandline may be rejected by OS.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19998 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-10-28 12:03:14 +00:00
mame
517fd61e14 * test/ruby/test_require.rb (test_require_too_long_filename):
Kernel#require does not use dln_find_file_r (at r18242).


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18247 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-07-28 12:00:43 +00:00
mame
eafe85f603 * test/ruby/envutil.rb (Test::Unit::Assertions#assert_in_out_err): new
method.

* test/ruby/test_argf.rb: use assert_in_out_err instead of
  EnvUtil.rubyexec.

* test/ruby/test_module.rb: ditto.

* test/ruby/test_require.rb: ditto.

* test/ruby/test_objectspace.rb: ditto.

* test/ruby/test_object.rb: ditto.

* test/ruby/test_string.rb: ditto.

* test/ruby/test_method.rb: ditto.

* test/ruby/test_variable.rb: ditto.

* test/ruby/test_io.rb: ditto.

* test/ruby/test_rubyoptions.rb: ditto.

* test/ruby/test_exception.rb: ditto.

* test/ruby/test_class.rb: ditto.

* test/ruby/test_thread.rb: ditto.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18082 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-07-15 15:26:04 +00:00
mame
595ad416f3 * test/ruby/test_require.rb: add a test for load with wrap flag, to
achieve 100% test coverage of eval_jump.c.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@16686 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-05-29 13:51:52 +00:00
mame
2c8dd794e9 * test/ruby/test_require.rb: new tests for library requiring, to
achieve over 90% test coverage of dln.c.

* test/ruby/test_class.rb: add tests to achieve over 90% test coverage
  of class.c.

* test/ruby/test_module.rb: ditto.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@16510 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-05-21 15:31:15 +00:00