merge revision(s) 32642:

* test/rake/test_rake_functional.rb (setup): Use __FILE__ for the base
	  directory. Current directory is not the top source directory when
	  the building process runs on other than there.

	* test/rake/test_rake_rake_test_loader.rb: ditto.

	* test/rake/test_rake_task_argument_parsing.rb
	  (test_terminal_width_using_hardcoded_80): hardcoded 80 is used
	  when app.unix? is false.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_3@32653 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
naruse 2011-07-23 16:15:12 +00:00
parent e1d542bc8b
commit 301dfa19b0
4 changed files with 16 additions and 4 deletions

View file

@ -1,3 +1,15 @@
Sun Jul 24 01:14:49 2011 NARUSE, Yui <naruse@ruby-lang.org>
* test/rake/test_rake_functional.rb (setup): Use __FILE__ for the base
directory. Current directory is not the top source directory when
the building process runs on other than there.
* test/rake/test_rake_rake_test_loader.rb: ditto.
* test/rake/test_rake_task_argument_parsing.rb
(test_terminal_width_using_hardcoded_80): hardcoded 80 is used
when app.unix? is false.
Sun Jul 24 00:42:00 2011 Kenta Murata <mrkn@mrkn.jp> Sun Jul 24 00:42:00 2011 Kenta Murata <mrkn@mrkn.jp>
* configure.in: change the default compiler to gcc-4.2 if target os * configure.in: change the default compiler to gcc-4.2 if target os

View file

@ -5,8 +5,8 @@ require 'open3'
class TestRakeFunctional < Rake::TestCase class TestRakeFunctional < Rake::TestCase
def setup def setup
@rake_path = File.expand_path("bin/rake") @rake_path = File.expand_path("../../../bin/rake", __FILE__)
lib_path = File.expand_path("lib") lib_path = File.expand_path("../../../lib", __FILE__)
@ruby_options = ["-I#{lib_path}", "-I."] @ruby_options = ["-I#{lib_path}", "-I."]
@verbose = ENV['VERBOSE'] @verbose = ENV['VERBOSE']

View file

@ -10,7 +10,7 @@ class TestRakeRakeTestLoader < Rake::TestCase
ARGV.replace %w[foo.rb test_*.rb -v] ARGV.replace %w[foo.rb test_*.rb -v]
load File.join(@orig_PWD, 'lib/rake/rake_test_loader.rb') load File.expand_path('../../../lib/rake/rake_test_loader.rb', __FILE__)
assert_equal %w[-v], ARGV assert_equal %w[-v], ARGV
ensure ensure

View file

@ -67,7 +67,7 @@ class TestRakeTaskArgumentParsing < Rake::TestCase
end end
def test_terminal_width_using_hardcoded_80 def test_terminal_width_using_hardcoded_80
def @app.unix?() true end def @app.unix?() false end
assert_equal 80, @app.terminal_width assert_equal 80, @app.terminal_width
end end