Note: This is a public test instance of Red Hat Bugzilla. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback at bugzilla.redhat.com.

Bug 1089252

Summary: make check fail. Exception requiring standard library Test::Unit with Minitest v5
Product: [Fedora] Fedora Reporter: Menanteau Guy <menantea>
Component: subversionAssignee: Joe Orton <jorton>
Status: CLOSED RAWHIDE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: rawhideCC: jcapik, jorton, rjones, vanmeeuwen+fedora
Target Milestone: ---   
Target Release: ---   
Hardware: ppc64le   
OS: Linux   
Whiteboard:
Fixed In Version: subversion-1.8.8-2.fc21 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-05-09 15:37:36 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1051573    

Description Menanteau Guy 2014-04-18 11:05:55 UTC
Description of problem:
I get a problem when trying to make check subversion (arch ppc64le)
Problem occurs during make check-swig-rb

Version-Release number of selected component (if applicable):
subversion-1.8.8-1.fc21
rubygem-minitest-5.3.1-1.fc21
ruby-2.0.0.353-18.fc21 

How reproducible:
always by running
rpmbuild with make check enabled
executing `make check-swig-rb' from the top of the Subversion build tree

Actual results:
if [ "LD_LIBRARY_PATH" = "DYLD_LIBRARY_PATH" ]; then for d in /builddir/build/BUILD/subversion-1.8.8/subversion/bindings/swig/ruby/libsvn_swig_ruby /builddir/build/BUILD/subversion-1.8.8/subversion/bindings/swig/ruby/../../../libsvn_*; do if [ -n "$DYLD_LIBRARY_PATH" ]; then LD_LIBRARY_PATH="$LD_LIBRARY_PATH:$d/.libs"; else LD_LIBRARY_PATH="$d/.libs"; fi; done; export LD_LIBRARY_PATH; fi; \
cd /builddir/build/BUILD/subversion-1.8.8/subversion/bindings/swig/ruby; \
          if [ "2" -eq 1 -a "0" -lt 9 ] ; then \
            /usr/bin/ruby -I /builddir/build/BUILD/subversion-1.8.8/subversion/bindings/swig/ruby \
              /builddir/build/BUILD/subversion-1.8.8/subversion/bindings/swig/ruby/test/run-test.rb \
      --verbose=verbose; \
          else \
    /usr/bin/ruby -I /builddir/build/BUILD/subversion-1.8.8/subversion/bindings/swig/ruby \
      /builddir/build/BUILD/subversion-1.8.8/subversion/bindings/swig/ruby/test/run-test.rb; \
          fi
Warning: you should require 'minitest/autorun' instead.
Warning: or add 'gem "minitest"' before 'require "minitest/autorun"'
From:
  /usr/share/ruby/test/unit.rb:3:in `<top (required)>'
  /builddir/build/BUILD/subversion-1.8.8/subversion/bindings/swig/ruby/test/run-test.rb:22:in `<main>'
MiniTest::Unit::TestCase is now Minitest::Test. From /usr/share/ruby/test/unit/testcase.rb:8:in `<module:Unit>'
/usr/share/ruby/test/unit.rb:670:in `<class:Runner>': undefined method `_run_suite' for class `Test::Unit::Runner' (NameError)
        from /usr/share/ruby/test/unit.rb:255:in `<module:Unit>'
        from /usr/share/ruby/test/unit.rb:9:in `<module:Test>'
        from /usr/share/ruby/test/unit.rb:8:in `<top (required)>'
        from /usr/share/rubygems/rubygems/core_ext/kernel_require.rb:55:in `require'
        from /usr/share/rubygems/rubygems/core_ext/kernel_require.rb:55:in `require'
        from /builddir/build/BUILD/subversion-1.8.8/subversion/bindings/swig/ruby/test/run-test.rb:22:in `<main>'
make: *** [check-swig-rb] Error 1

Additional info:
it seems that minitest 5 and test/unit are no more compatible.
please have look to https://github.com/seattlerb/minitest/issues/283

Comment 1 Richard W.M. Jones 2014-04-22 10:33:11 UTC
FYI libguestfs had the same problem in the Ruby bindings, and
ended up rewriting the tests.  Here is the patch:

https://www.redhat.com/archives/libguestfs/2014-April/msg00050.html

Comment 2 Joe Orton 2014-04-23 09:14:43 UTC
This can be fixed with BR: rubygem(minitest) < 5.  I've fired off a build.

Comment 4 Jaromír Cápík 2014-05-09 15:37:36 UTC
1.8.8-3 succeeded with tests on ppc64le ... closing this one