Closed Bug 416047 Opened 16 years ago Closed 16 years ago

Test 1 fails in compiling Bugzilla::Install::CPAN and install-module.pl when Cygwin is installed

Categories

(Bugzilla :: Testing Suite, defect)

3.1.3
All
Windows XP
defect
Not set
minor

Tracking

()

RESOLVED FIXED
Bugzilla 3.2

People

(Reporter: Wurblzap, Assigned: Wurblzap)

Details

Attachments

(1 file)

The testing suite's test 1 reports compilation of Bugzilla/Install/CPAN.pm to fail. In turn, this makes install-module.pl seem to fail test 1. It seems to me this is because CPAN.pm gives some output on startup ("Set up gcc environment - 3.4.4 (cygming special, gdc 0.12, using dmd 0.125)"), which probably confuses the testing harness.

Compilation for Bugzilla/Install/CPAN.pm and install-module.pl succeeds, so test 1 should report this correctly.

This may be a Windows-only issue.
Flags: blocking3.2?
Ah, the testing suite shouldn't be trying to compile anything in the lib/ directory, that's the problem. So we need to stop it from doing that.
Flags: blocking3.2? → blocking3.2+
Summary: CPAN.pm makes test 1 fail for Bugzilla/Install/CPAN.pm and, in turn, install-module.pl → test 1 attempts to compile modules in the lib/ directory
Assignee: zach → nobody
This is not about the lib/ directory, but about Bugzilla/Install/CPAN.pm (or its dependence CPAN.pm, which emits said output when "use"d in Bugzilla/Install/CPAN.pm).
Ohhh, thank you. What version of CPAN.pm are you using?
OS: All → Windows XP
Summary: test 1 attempts to compile modules in the lib/ directory → Test 1 fails in compiling Bugzilla::Install::CPAN and install-module.pl
I'm using version 1.9205.
I cannot reproduce the problem, neither on windows.bugzilla.org nor on my local Windows installation. Wurblzap says on IRC this may be related to Cygwin, despite I don't see how they could interact. Not a blocker IMO.
Attached patch PatchSplinter Review
Assignee: nobody → wurblzap
Status: NEW → ASSIGNED
Attachment #310254 - Flags: review?(LpSolit)
Comment on attachment 310254 [details] [diff] [review]
Patch

>+        if ($^O =~ /MSWin32/i
>+            && grep($_ eq $file, 'install-module.pl',
>+                                 'Bugzilla/Install/CPAN.pm')
>+           ) {

Nit: the indentation could be:

>+        if ($^O =~ /MSWin32/i
>+            && grep($_ eq $file, 'install-module.pl', 'Bugzilla/Install/CPAN.pm'))
>+        {

which is clearer IMO. r=LpSolit
Attachment #310254 - Flags: review?(LpSolit) → review+
Flags: approval+
Summary: Test 1 fails in compiling Bugzilla::Install::CPAN and install-module.pl → Test 1 fails in compiling Bugzilla::Install::CPAN and install-module.pl when Cygwin is installed
Hrm, the line exceeds 80 characters now. Oh well.

Checking in t/001compile.t;
/cvsroot/mozilla/webtools/bugzilla/t/001compile.t,v  <--  001compile.t
new revision: 1.17; previous revision: 1.16
done
Status: ASSIGNED → RESOLVED
Closed: 16 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: