Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.

Bug 635588

Summary: ruby self-test fails
Product: Red Hat Enterprise Linux 6 Reporter: Ondrej Moriš <omoris>
Component: rubyAssignee: Vít Ondruch <vondruch>
Status: CLOSED ERRATA QA Contact: Aleš Mareček <amarecek>
Severity: medium Docs Contact:
Priority: medium    
Version: 6.0CC: amarecek, eng-i18n-bugs, vondruch
Target Milestone: rcKeywords: Reopened
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: ruby-1.8.7.299-5.el6 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-05-19 14:11:07 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
Output of self-test. none

Description Ondrej Moriš 2010-09-20 09:26:27 UTC
Created attachment 448403 [details]
Output of self-test.

Description of problem:

Ruby source rpm contains pretty exhaustive self-test. We could easily benefit from such a huge test. Unfortunately, it is failing right now and hence there are (probably) some issues in our ruby or in the test. In any case, it needs inspection.

Version-Release number of selected component (if applicable):

ruby-1.8.7.299-4.el6

How reproducible:

always

Steps to Reproduce:

1. install source rpm
   - rpm -ihv ruby-1.8.7.299-4.el6.src.rpm

3. change directory into rpm topdir
   - cd ~/rpmbuild

3. build it
   - rpmbuild -vv -bc SPECS/ruby.spec

4. execute self-test
   - make -C BUILD/ruby-1.8.7.299/ruby-1.8.7-p299 check
  
Actual results:

2252 tests, 1347785 assertions, 14 failures, 0 errors
make[1]: *** [test-all] Error 1

$ echo $?
2

Expected results:

X tests, Y assertions, 0 failures, 0 errors

$ echo $?
0

Additional info:

Output of self-test is attached.

Comment 1 Jim Meyering 2010-09-20 12:21:08 UTC
Thanks for testing.
However, at least the first 5 failures have been discussed already:

https://bugzilla.redhat.com/show_bug.cgi?id=602435#c44

The remaining ones seem to be new (i.e. not listed in the URL above):

  6) Failure:
test_readable_p(TestFileExhaustive) [./test/ruby/test_file_exhaustive.rb:140]:
<false> is not true.

  7) Failure:
test_readable_real_p(TestFileExhaustive) [./test/ruby/test_file_exhaustive.rb:149]:
<false> is not true.

...

so they may be due to some other library.

Comment 2 Jim Meyering 2010-09-21 08:41:35 UTC
FYI, while ruby.spec was already running "make test", that did not do as much as "make check" (check depends on "test" and "test-all" targets).
I've added the "make test-all" and removed an exemption that let ppc's "make test" fail.  In addition, I've arranged to skip the losing gdbm test
and corrected the readline false-positive.  The result passed on all 9 types of systems:

http://brewweb.devel.redhat.com/brew/taskinfo?taskID=2772669

If you can still provoke the failures above using the lastest srpm, please see if you can reproduce it on a reference system.

Comment 3 Marcela Mašláňová 2010-12-23 11:26:29 UTC
It looks like this bug was already solved by previous build ruby-1.8.7.299-5.el6. Could it be closed now?

Comment 4 Jim Meyering 2010-12-23 11:48:43 UTC
Hmm... perhaps the first step should be to transition to "MODIFIED".
I've done that.

Comment 7 Jim Meyering 2011-01-27 14:31:34 UTC
Closing, finally.
As Marcela noticed, this was fixed back in ruby-1.8.7.299-5.el6

Comment 8 Jim Meyering 2011-01-27 14:32:37 UTC
Hmm.. obviously should not have been "NOTABUG".
Fixed that.

Comment 14 errata-xmlrpc 2011-05-19 14:11:07 UTC
An advisory has been issued which should help the problem
described in this bug report. This report is therefore being
closed with a resolution of ERRATA. For more information
on therefore solution and/or where to find the updated files,
please follow the link below. You may reopen this bug report
if the solution does not work for you.

http://rhn.redhat.com/errata/RHBA-2011-0721.html