diff options
Diffstat (limited to 'meta-ruby/recipes-devtools/ruby/ruby/ruby-1.9.3-webrick-test-fix.patch')
-rw-r--r-- | meta-ruby/recipes-devtools/ruby/ruby/ruby-1.9.3-webrick-test-fix.patch | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/meta-ruby/recipes-devtools/ruby/ruby/ruby-1.9.3-webrick-test-fix.patch b/meta-ruby/recipes-devtools/ruby/ruby/ruby-1.9.3-webrick-test-fix.patch new file mode 100644 index 0000000000..c6eb3fa404 --- /dev/null +++ b/meta-ruby/recipes-devtools/ruby/ruby/ruby-1.9.3-webrick-test-fix.patch @@ -0,0 +1,24 @@ +diff --git a/test/webrick/test_cgi.rb b/test/webrick/test_cgi.rb +index 1185316..0ef1b37 100644 +--- a/test/webrick/test_cgi.rb ++++ b/test/webrick/test_cgi.rb +@@ -14,6 +14,7 @@ class TestWEBrickCGI < Test::Unit::TestCase + def req.meta_vars + meta = super + meta["RUBYLIB"] = $:.join(File::PATH_SEPARATOR) ++ meta[RbConfig::CONFIG['LIBPATHENV']] = ENV[RbConfig::CONFIG['LIBPATHENV']] + return meta + end + }, +diff --git a/test/webrick/test_filehandler.rb b/test/webrick/test_filehandler.rb +index bcdb3df..f78ba5c 100644 +--- a/test/webrick/test_filehandler.rb ++++ b/test/webrick/test_filehandler.rb +@@ -252,6 +252,7 @@ class WEBrick::TestFileHandler < Test::Unit::TestCase + def req.meta_vars + meta = super + meta["RUBYLIB"] = $:.join(File::PATH_SEPARATOR) ++ meta[RbConfig::CONFIG['LIBPATHENV']] = ENV[RbConfig::CONFIG['LIBPATHENV']] + return meta + end + }, |