Closed Bug 137589 Opened 22 years ago Closed 22 years ago

Tinderbox is stuck waiting for input from CGI.pm in process/verify-new-product.html.tmpl

Categories

(Bugzilla :: Testing Suite, defect)

2.15
defect
Not set
normal

Tracking

()

RESOLVED FIXED
Bugzilla 2.16

People

(Reporter: ddkilzer, Assigned: ddkilzer)

References

()

Details

Attachments

(1 file, 1 obsolete file)

After Bug 125660 (Templatise process_bug.cgi) was checked in,
the t/004template.t template test gets stuck on the following
line from the template/default/process/verify-new-product.html.tmpl
template:

[% USE mycgi = CGI %]

It is similar to what happens when this is run from the
command-line (hit Ctrl-C or Ctrl-D on *NIX to exit):

perl -e 'use CGI; my $query = new CGI;'

There are two fixes for this:

1. Add a line like this to t/004template.t:

use CGI qw(-no_debug);

   Because CGI.pm would already be included in the test script,
   including it again in the template has no effect, and the
   '-no_debug' switch turns off this feature for testing.

2. Change template/default/process/verify-new-product.html to
   include the '-no_debug' switch:

[% USE mycgi = CGI('-no_debug') %]

Any preference as to the fix?
Status: NEW → ASSIGNED
Target Milestone: --- → Bugzilla 2.16
Adds a 'use CGI qw(-no_debug);' line to t/004template.t to
avoid hanging when testing process/verify-new-product.html.tmpl.
Changes USE directive in process/verify-new-product.html.tmpl
to avoid hanging during testing.
Keywords: patch, review
Attachment #79299 - Flags: review+
Comment on attachment 79299 [details] [diff] [review]
Patch Alt #1 (t/004template.t)

The script works fine. So we should fix the test, not the script.

Gerv
Blocks: 135543
Comment on attachment 79300 [details] [diff] [review]
Patch Alt #2 (process/verify-new-product.html.tmpl)

Marking obsolete per Comment #3.
Attachment #79300 - Attachment is obsolete: true
Comment on attachment 79299 [details] [diff] [review]
Patch Alt #1 (t/004template.t)

Waht version of perl/CGI/pm are you using?

I don't need this patch - is this another version difference thing?

r=bbaetz, since it can't hurt, although I fail tests ATM because of missing
version strings in show/navigate
Attachment #79299 - Flags: review+
Fixed. (Not wanting to step on ddk's toes, but it is a trivial checkin.) Let's
see if this get the tbox working again.

Checking in t/004template.t;
/cvsroot/mozilla/webtools/bugzilla/t/004template.t,v  <--  004template.t
new revision: 1.11; previous revision: 1.10
done

(Oops; forgot credits in checkin comment. Doh. Never mind.)

Gerv
Status: ASSIGNED → RESOLVED
Closed: 22 years ago
Resolution: --- → FIXED
bbaetz: I'm using CGI.pm v2.56 that was causing 'make test' to
get stuck on my system.
See also Bug 141003.
QA Contact: matty_is_a_geek → default-qa
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: