summaryrefslogtreecommitdiff
path: root/test/rake/test_rake_backtrace.rb
diff options
context:
space:
mode:
authornaruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2012-11-16 03:49:09 +0000
committernaruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2012-11-16 03:49:09 +0000
commita632fe43d837f3cb05ed35012327aa60c37919b7 (patch)
tree0294493ad49772908be3faf2616451c8e380c145 /test/rake/test_rake_backtrace.rb
parent48aab9e032f7deca5ccc994356428c86f75ef2f7 (diff)
* test/rake/helper.rb (Rake::TestCase#setup): revert r37669.
@orig_PWD should be the original pwd. * test/rake/test_*.rb: don't use @orig_PWD to load libraries. It should be specified with relative path from the file. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37670 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/rake/test_rake_backtrace.rb')
-rw-r--r--test/rake/test_rake_backtrace.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/rake/test_rake_backtrace.rb b/test/rake/test_rake_backtrace.rb
index 4d84bec..8fcf813 100644
--- a/test/rake/test_rake_backtrace.rb
+++ b/test/rake/test_rake_backtrace.rb
@@ -4,8 +4,8 @@ require 'open3'
class TestRakeBacktrace < Rake::TestCase
# TODO: factor out similar code in test_rake_functional.rb
def rake(*args)
- lib = File.join(@orig_PWD, "lib")
- bin_rake = File.join(@orig_PWD, "bin", "rake")
+ lib = File.expand_path('../../../lib', __FILE__)
+ bin_rake = File.expand_path('../../../bin/rake', __FILE__)
Open3.popen3(RUBY, "-I", lib, bin_rake, *args) { |_, _, err, _| err.read }
end