[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: ruby bindings tests fail with ruby-1.9

From: Stefan Sperling <stsp_at_elego.de>
Date: Wed, 22 Jun 2011 15:59:23 +0200

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"
 
Received on 2011-06-22 15:59:58 CEST

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.