On Wed, Jun 22, 2011 at 03:34:29PM +0200, Arfrever Frehtes Taifersar Arahesis 
wrote:
> 2011-06-22 13:48:52 Stefan Sperling napisaƂ(a):
> > As can be seen here:
> > http://ci.apache.org/builders/bb-openbsd/builds/16/steps/Test%20bindings/logs/testlog-swig-rb
> > our ruby bindings tests fail to run with ruby 1.9.
> > 
> > Does anyone know how to get this to work?
> 
> Maybe you need Test::Unit [1], which is no longer bundled in Ruby.
> 
> [1] http://test-unit.rubyforge.org/

I see.

This seems to require additional imports:

  require "rubygems"
  gem "test-unit", "1.2.3"
  require "test/unit"

At the moment our tests only use the last line.
Is it safe to add these lines?

I'm getting errors like this with ruby 1.8:
run-test.rb:22:in `require': no such file to load -- rubygems
(LoadError)
        from run-test.rb:22

Do you know how to make our code work with either version?

Index: run-test.rb
===================================================================
--- run-test.rb (revision 1138443)
+++ run-test.rb (working copy)
@@ -19,6 +19,8 @@
 #    under the License.
 # ====================================================================
 
+require "rubygems"
+gem "test-unit", "1.2.3"
 require "test/unit"
 require "fileutils"
 

Reply via email to