Forum: Ruby-core [ruby-trunk - Bug #7902][Open] The test suite does not honor configuration options

Posted by Vít Ondruch (vo_x)
on 2013-02-21 14:16
(Received via mailing list)
Issue #7902 has been reported by vo.x (Vit Ondruch).

----------------------------------------
Bug #7902: The test suite does not honor configuration options
https://bugs.ruby-lang.org/issues/7902

Author: vo.x (Vit Ondruch)
Status: Open
Priority: Normal
Assignee: nobu (Nobuyoshi Nakada)
Category:
Target version:
ruby -v: ruby 2.0.0dev (2013-02-21 trunk 39357) [x86_64-linux]


=begin
Rev 39201 and 39201 introduced new test cases, which fails for me:

 #  make test-all TESTS="test/test_rbconfig.rb"
   CC = gcc
   LD = ld
   LDSHARED = gcc -shared
   CFLAGS = -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions 
-fstack-protector --param=ssp-buffer-size=4 -mtune=generic -fPIC -m64
   XCFLAGS = -include ruby/config.h -include ruby/missing.h 
-D_FORTIFY_SOURCE=2 -fstack-protector -fno-strict-overflow 
-fvisibility=hidden -DRUBY_EXPORT
   CPPFLAGS =   -I. -I.ext/include/x86_64-linux -I./include -I.
   DLDFLAGS = -Wl,-soname,libruby.so.2.0 -fstack-protector  -m64
   SOLIBS = -lpthread -lrt -ldl -lcrypt -lm
 ./miniruby -I./lib -I. -I.ext/common  ./tool/runruby.rb --extout=.ext 
-- --disable-gems "./test/runner.rb" --ruby="./miniruby -I./lib -I. 
-I.ext/common  ./tool/runruby.rb --extout=.ext  -- --disable-gems" 
test/test_rbconfig.rb
 Run options: "--ruby=./miniruby -I./lib -I. -I.ext/common 
./tool/runruby.rb --extout=.ext  -- --disable-gems"

 # Running tests:

 [2/5] TestRbConfig#test_sitearchdirs = 0.00 s
 1) Failure:
 test_sitearchdirs(TestRbConfig) 
[/builddir/build/BUILD/ruby-2.0.0-r39357/test/test_rbconfig.rb:30]:
 sitearchdir [ruby-dev:46964] [Bug #7823].
 Expected /\$\(sitearch|\$\(rubysitearchprefix\)/ to match 
"$(DESTDIR)/usr/local/lib64/ruby/site_ruby".

 [4/5] TestRbConfig#test_vendorarchdirs = 0.00 s
 2) Failure:
 test_vendorarchdirs(TestRbConfig) 
[/builddir/build/BUILD/ruby-2.0.0-r39357/test/test_rbconfig.rb:38]:
 vendorarchdir [ruby-dev:46964] [Bug #7823].
 Expected /\$\(sitearch|\$\(rubysitearchprefix\)/ to match 
"$(DESTDIR)/usr/lib64/ruby/vendor_ruby".

 Finished tests in 0.005311s, 941.3960 tests/s, 5271.8177 assertions/s.
 5 tests, 28 assertions, 2 failures, 0 errors, 0 skips

 ruby -v: ruby 2.0.0dev (2013-02-21 trunk 39357) [x86_64-linux]
 make: *** [yes-test-all] Error 2

They obviously does not respect configuration options. Here is the 
configure command I used:

 ./configure --build=x86_64-redhat-linux-gnu 
--host=x86_64-redhat-linux-gnu --program-prefix= 
--disable-dependency-tracking --prefix=/usr --exec-prefix=/usr 
--bindir=/usr/bin --sbindir=/usr/sbin --sysconfdir=/etc 
--datadir=/usr/share --includedir=/usr/include --libdir=/usr/lib64 
--libexecdir=/usr/libexec --localstatedir=/var --sharedstatedir=/var/lib 
--mandir=/usr/share/man --infodir=/usr/share/info 
--with-rubylibprefix=/usr/share/ruby 
--with-sitedir=/usr/local/share/ruby/site_ruby 
--with-sitearchdir=/usr/local/lib64/ruby/site_ruby 
--with-vendordir=/usr/share/ruby/vendor_ruby 
--with-vendorarchdir=/usr/lib64/ruby/vendor_ruby 
--with-rubyhdrdir=/usr/include --with-ruby-pc=ruby.pc --disable-rpath 
--enable-shared --with-ruby-version=''

I hope this can be fixed prior Ruby 2.0.0. Thank you.
=end
Please log in before posting. Registration is free and takes only a minute.
Existing account (Switch to SSL-encrypted connection)
NEW: Do you have a Google/GoogleMail or Yahoo account? No registration required!
Log in with Google account | Log in with Yahoo account
No account? Register here.