* test/win32ole/test_err_in_callback.rb (TestErrInCallBack#setup):

allow using different drive for source and build directories.
  this may fixes a minor problem of r39834.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39837 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
usa 2013-03-20 08:52:04 +00:00
Родитель f4274129ee
Коммит dd210d8fbc
2 изменённых файлов: 9 добавлений и 2 удалений

Просмотреть файл

@ -1,3 +1,9 @@
Wed Mar 20 17:47:53 2013 NAKAMURA Usaku <usa@ruby-lang.org>
* test/win32ole/test_err_in_callback.rb (TestErrInCallBack#setup):
allow using different root for source and build directories.
this may fixes a minor problem of r39834.
Wed Mar 20 16:40:48 2013 Hiroshi Shirosaki <h.shirosaki@gmail.com>
* test/ruby/test_signal.rb (test_hup_me): skip if HUP isn't supported.

Просмотреть файл

@ -20,9 +20,10 @@ if defined?(WIN32OLE)
@ruby = "." + sep + CONFIG["RUBY_INSTALL_NAME"]
cwd = Pathname.new(File.expand_path('.'))
@iopt = $:.map {|e|
" -I " + Pathname.new(e).relative_path_from(cwd).to_s
" -I " + (Pathname.new(e).relative_path_from(cwd).to_s rescue e)
}.join("")
@script = Pathname.new(File.join(File.dirname(__FILE__), "err_in_callback.rb")).relative_path_from(cwd).to_s
script = File.join(File.dirname(__FILE__), "err_in_callback.rb")
@script = Pathname.new(script).relative_path_from(cwd).to_s rescue script
end
end