Bug #47526 unit.pl fails to execute binaries when using Test::Harness 3.10

Submitted: 22 Sep 2009 17:35 Modified: 13 Dec 2010 0:58
Reporter: Magnus Blåudd Email Updates:
Status: Closed Impact on me:
None 
Category:Tests: Cluster Severity:S7 (Test Cases)
Version:5.1.37 OS:Any
Assigned to: Magnus Blåudd CPU Architecture:Any

[22 Sep 2009 17:35] Magnus Blåudd
Description:
unit.pl is no longer able to properly run our unittests on newer version of perl.

How to repeat:
Run the unittests oin a machine with "perl 5.10.0 built for cygwin-thread-multi-64int"

SPAWN sh -c "cd ../unittest && perl unit.pl run mytap mysys ../storage"
Running tests: mytap mysys ../storage
../storage/ndb/src/common/portlib/RelWithDebInfo/NdbDir-t.........Useless use of string in void context at -e line 1.
 No subtests run 
../storage/ndb/src/common/util/RelWithDebInfo/BaseString-t........Useless use of string in void context at -e line 1.
 No subtests run 
../storage/ndb/src/common/util/RelWithDebInfo/Bitmask-t...........Useless use of string in void context at -e line 1.
 No subtests run 

Test Summary Report
-------------------
../storage/ndb/src/common/portlib/RelWithDebInfo/NdbDir-t.exe (Wstat: 0 Tests: 0 Failed: 0)
  Parse errors: No plan found in TAP output
../storage/ndb/src/common/util/RelWithDebInfo/BaseString-t.exe (Wstat: 0 Tests: 0 Failed: 0)
  Parse errors: No plan found in TAP output
../storage/ndb/src/common/util/RelWithDebInfo/Bitmask-t.exe   (Wstat: 0 Tests: 0 Failed: 0)
  Parse errors: No plan found in TAP output
Files=3, Tests=0,  0 wallclock secs ( 0.02 usr  0.02 sys +  0.01 cusr  0.07 csys =  0.12 CPU)
Result: FAIL
Failed 3/3 test programs. 0/0 subtests failed.

Suggested fix:
Test::Harness have been extensively rewritten in newer perl
versions and is now just a backward compatibility wrapper
(with a bug causing the HARNESS_PERL_SWITCHES to be mangled)
Prefer to use TAP::Harness directly if available
[23 Sep 2009 5:35] Jonas Oreland
pushed to 7.0.8 and 7.1
[24 Sep 2009 6:10] Jon Stephens
Changed category to Tests.

Testing only, no user-facing changes, closed without further action.
[30 Sep 2009 8:14] Bugs System
Pushed into 5.1.37-ndb-7.0.9 (revid:jonas@mysql.com-20090930075942-1q6asjcp0gaeynmj) (version source revid:magnus.blaudd@sun.com-20090922173735-1ntbiqr025y4gcbj) (merge vers: 5.1.37-ndb-7.0.8) (pib:11)
[30 Sep 2009 8:15] Bugs System
Pushed into 5.1.35-ndb-7.1.0 (revid:jonas@mysql.com-20090930080049-1c8a8cio9qgvhq35) (version source revid:jonas@mysql.com-20090923044045-pskiy7h7aayo25ko) (merge vers: 5.1.35-ndb-7.1.0) (pib:11)
[5 Nov 2009 13:14] Guilhem Bichot
affects main non-cluster trees as well, please push there too. Thanks.
[4 Jan 2010 11:20] Bugs System
A patch for this bug has been committed. After review, it may
be pushed to the relevant source trees for release in the next
version. You can access the patch from:

  http://lists.mysql.com/commits/95883
[9 Nov 2010 19:43] Bugs System
Pushed into mysql-5.5 5.5.7-rc (revid:sunanda.menon@sun.com-20101109182959-otkxq8vo2dcd13la) (version source revid:sunanda.menon@sun.com-20101109182959-otkxq8vo2dcd13la) (merge vers: 5.5.7-rc) (pib:21)
[24 Nov 2010 11:07] Jon Stephens
Affects tests only; no changes to document for end users; closed.
[5 Dec 2010 12:38] Bugs System
Pushed into mysql-trunk 5.6.1 (revid:alexander.nozdrin@oracle.com-20101205122447-6x94l4fmslpbttxj) (version source revid:alexander.nozdrin@oracle.com-20101205122447-6x94l4fmslpbttxj) (merge vers: 5.6.1) (pib:23)
[13 Dec 2010 0:58] Jon Stephens
Affects tests only; no changes to document for end users; closed.

Portions of this website are copyright © 2001, 2002 The PHP Group

Page generated in 0.064 sec. using MySQL 8.4.7-u6-cloud

Timestamp references displayed by the system are UTC.
Content reproduced on this site is the property of the respective copyright holders.
It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.