Bug #50047 unit.pl fails to execute binaries when using Test::Harness 3.10 - part 2
Submitted: 4 Jan 2010 11:29 Modified: 7 Oct 2010 15:35
Reporter: Magnus Blåudd Email Updates:
Status: Verified Impact on me:
None 
Category:MySQL Server: Tests Severity:S3 (Non-critical)
Version:5.1.43 OS:Windows
Assigned to: CPU Architecture:Any

[4 Jan 2010 11:29] Magnus Blåudd
Description:
Description:
unit.pl is no longer able to properly run our unittests on newer version of perl.

How to repeat:
Run the unittests on 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

Already fixed in MySQL Cluster 7.0 with patch for bug#47526
[12 Jan 2010 9:57] Sveta Smirnova
Thank you for the report.

I can not repeat described behavior on Linux box with Perl 5.10.1. Which tree do you use?
[12 Jan 2010 11:23] Magnus Blåudd
This problem occurred with cygwin perl
[12 Jan 2010 13:37] Sveta Smirnova
Magnus,

thank you for the feedback. But which MySQL tree do you use?
[11 Feb 2010 8:41] Magnus Blåudd
Occurs in MySQL Server 5.1.43
[1 Jul 2010 6:19] Sveta Smirnova
Magnus,

I communicated with Guilhem and got answer: "I cannot find any Ndb test in 5.1-bugteam, and don't see this issue on my Linux; I don't have a Windows/cygwin box around currently. I suggest we close this. " Do you agree with this solution or bug can be verified somehow?
[1 Aug 2010 23:00] Bugs System
No feedback was provided for this bug for over a month, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".
[7 Oct 2010 15:35] Kent Boortz
This is exactly the problem seen on HP-UX 11.31 IA64, described in the internal intranet eventum ticket 39753. Tried Magnus patch from Bug#47526 with both the stock Test and TAP modules, and the ones from "Test-Harness-3.22.tar.gz", the patch worked for both.

This is not about Cygwin, it is about some newer Perl versions (in this case 5.8.8) and bugs in the Test and/or TAP modules used.

So I think the patch Magnus provided should be applied to "unit.pl" in 5.1 and up.
[8 Oct 2010 12:20] Magnus Blåudd
Correct, just that we saw it in Cygwin first.
[9 Nov 2010 19:47] 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)
[5 Dec 2010 12:41] 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)