diff options
author | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-06-26 12:48:15 +0000 |
---|---|---|
committer | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-06-26 12:48:15 +0000 |
commit | 69be7e91b87ae921955be7bbb0edf9c821342447 (patch) | |
tree | 96d3d96d4a6b3e133e62b39918d320d9137f1514 /test/ruby/test_rubyoptions.rb | |
parent | cbc579cd3ceef893cb94686cc8195ff4290aa8a0 (diff) | |
download | ruby-69be7e91b87ae921955be7bbb0edf9c821342447.tar.gz ruby-69be7e91b87ae921955be7bbb0edf9c821342447.tar.xz ruby-69be7e91b87ae921955be7bbb0edf9c821342447.zip |
* 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: http://svn.ruby-lang.org/repos/ruby/trunk@23860 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/ruby/test_rubyoptions.rb')
-rw-r--r-- | test/ruby/test_rubyoptions.rb | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/test/ruby/test_rubyoptions.rb b/test/ruby/test_rubyoptions.rb index 909c8f469..59be99164 100644 --- a/test/ruby/test_rubyoptions.rb +++ b/test/ruby/test_rubyoptions.rb @@ -199,16 +199,12 @@ class TestRubyOptions < Test::Unit::TestCase ENV['RUBYOPT'] = ' - -' assert_in_out_err([], "", [], []) - assert_in_out_err(['-e', 'p $:.include?(".")'], "", ["false"], []) - ENV['RUBYOPT'] = '-e "p 1"' assert_in_out_err([], "", [], /invalid switch in RUBYOPT: -e \(RuntimeError\)/) ENV['RUBYOPT'] = '-T1' assert_in_out_err([], "", [], /no program input from stdin allowed in tainted mode \(SecurityError\)/) - assert_in_out_err(['-e', 'p $:.include?(".")'], "", ["false"], []) - ENV['RUBYOPT'] = '-T4' assert_in_out_err([], "", [], /no program input from stdin allowed in tainted mode \(SecurityError\)/) |