mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
rubyopt_spec.rb: skip -v in RUBYOPT examples
* spec/ruby/command_line/rubyopt_spec.rb: skip -v in RUBYOPT examples when CROSS_COMPILING is set by fake.rb. the version number by -v is printed before loading libraries by -r options, so setting RUBY_DESCRIPTION in fake.rb has no effect. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@63833 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
ef01bbcf70
commit
6e65c89d3d
1 changed files with 9 additions and 7 deletions
|
@ -22,6 +22,7 @@ describe "Processing RUBYOPT" do
|
||||||
result.should =~ /value of \$DEBUG is true/
|
result.should =~ /value of \$DEBUG is true/
|
||||||
end
|
end
|
||||||
|
|
||||||
|
unless CROSS_COMPILING
|
||||||
it "prints the version number for '-v'" do
|
it "prints the version number for '-v'" do
|
||||||
ENV["RUBYOPT"] = '-v'
|
ENV["RUBYOPT"] = '-v'
|
||||||
ruby_exe("")[/\A.*/].should == RUBY_DESCRIPTION
|
ruby_exe("")[/\A.*/].should == RUBY_DESCRIPTION
|
||||||
|
@ -31,6 +32,7 @@ describe "Processing RUBYOPT" do
|
||||||
ENV["RUBYOPT"] = ' -v '
|
ENV["RUBYOPT"] = ' -v '
|
||||||
ruby_exe("")[/\A.*/].should == RUBY_DESCRIPTION
|
ruby_exe("")[/\A.*/].should == RUBY_DESCRIPTION
|
||||||
end
|
end
|
||||||
|
end
|
||||||
|
|
||||||
it "sets $VERBOSE to true for '-w'" do
|
it "sets $VERBOSE to true for '-w'" do
|
||||||
ENV["RUBYOPT"] = '-w'
|
ENV["RUBYOPT"] = '-w'
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue