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

Re: [PATCH] enabling ruby in the subversion build

From: Philip Martin <philip.martin_at_wandisco.com>
Date: Thu, 26 Jan 2012 12:32:58 +0000

Philip Martin <philip.martin_at_wandisco.com> writes:

> The line is:
>
> require "test/unit/ui/testrunnermediator"
>
> ruby-1.8 works because testrunnermediator.rb is part of libruby1.8 on my
> machine, it does not appear to be part of the standard ruby-1.9.1
> install.

So I can install a gem:

export GEM_HOME=$HOME/.rubygems
gem1.9.1 install test-unit

Now I get an "undefined method" error:

nice make check-swig-rb
cd /home/pm/sw/subversion/obj2/subversion/bindings/swig/ruby; \
          if [ "1" -eq 1 -a "9" -lt 9 ] ; then \
            /usr/bin/ruby1.9.1 -I /home/pm/sw/subversion/obj2/../src2/subversion/bindings/swig/ruby \
              /home/pm/sw/subversion/obj2/../src2/subversion/bindings/swig/ruby/test/run-test.rb \
              --verbose=normal; \
          else \
            /usr/bin/ruby1.9.1 -I /home/pm/sw/subversion/obj2/../src2/subversion/bindings/swig/ruby \
              /home/pm/sw/subversion/obj2/../src2/subversion/bindings/swig/ruby/test/run-test.rb; \
          fi
/home/pm/sw/subversion/src2/subversion/bindings/swig/ruby/test/test-unit-ext/priority.rb:162:in `alias_method': undefined method `run' for class `Test::Unit::TestSuite' (NameError)
        from /home/pm/sw/subversion/src2/subversion/bindings/swig/ruby/test/test-unit-ext/priority.rb:162:in `<class:TestSuite>'
        from /home/pm/sw/subversion/src2/subversion/bindings/swig/ruby/test/test-unit-ext/priority.rb:153:in `<module:Unit>'
        from /home/pm/sw/subversion/src2/subversion/bindings/swig/ruby/test/test-unit-ext/priority.rb:25:in `<module:Test>'
        from /home/pm/sw/subversion/src2/subversion/bindings/swig/ruby/test/test-unit-ext/priority.rb:24:in `<top (required)>'
        from <internal:lib/rubygems/custom_require>:29:in `require'
        from <internal:lib/rubygems/custom_require>:29:in `require'
        from /home/pm/sw/subversion/src2/subversion/bindings/swig/ruby/test/test-unit-ext.rb:21:in `<top (required)>'
        from <internal:lib/rubygems/custom_require>:29:in `require'
        from <internal:lib/rubygems/custom_require>:29:in `require'
        from /home/pm/sw/subversion/obj2/../src2/subversion/bindings/swig/ruby/test/run-test.rb:38:in `<main>'

-- 
uberSVN: Apache Subversion Made Easy
http://www.uberSVN.com
Received on 2012-01-26 13:33:35 CET

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.