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

* 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
This commit is contained in:
matz 2009-06-26 12:48:15 +00:00
parent 2f262b2351
commit cadee06b2a
3 changed files with 14 additions and 6 deletions

View file

@ -230,8 +230,11 @@ class TestRequire < Test::Unit::TestCase
abs_dir = "#{ abs_dir }"
$: << abs_dir.taint
$SAFE = 1
require "#{ t.path }"
p :ok
begin
require "#{ file }"
rescue SecurityError
p :ok
end
INPUT
assert_in_out_err([], <<-INPUT, %w(:ok), [])