Closed Bug 103664 Opened 24 years ago Closed 24 years ago

Clean up tests to use 'use strict' and TEST_VERBOSE

Categories

(Bugzilla :: Testing Suite, defect)

2.15
All
Linux
defect
Not set
normal

Tracking

()

RESOLVED FIXED
Bugzilla 2.16

People

(Reporter: ddkilzer, Assigned: ddkilzer)

References

Details

Attachments

(1 file, 1 obsolete file)

The soon-to-be-attached patch will do the following: 1. Change use 'VERBOSE' environment variable when running tests to use 'TEST_VERBOSE' instead. This is what ExtUtils::MakeMaker uses when generating a Makefile from Makefile.PL. The runtests.sh script and the test scripts should do the same. 2. Add 'use strict;' to all test scripts and clean up undeclared variables. 3. Add $verbose variable to t/002goodperl.t in case it is needed later. 4. Remove "sillyness" from t/001compile.t for $warnings variable (which really should have been %warnings). 5. Clean up package name of t/Support/Systemexec.pm from 'Systemexec' to 'Support::Systemexec' and fix t/003safesys.t to use the proper syntax for the module. 6. Fix regex in t/003safesys.t when testing for error messages from improper exec() calls.
Blocks: 97976
Keywords: patch, review
Target Milestone: --- → Bugzilla 2.16
Status: NEW → ASSIGNED
Attached patch patch v1 (obsolete) — Splinter Review
Why was I able to assign the bug to zach@zachlipton.com when I was logged in as ddkilzer@theracingworld.com? I own the bug, bug I didn't think I could assign the bug to someone just as the bug owner? Reassigning to myself.
Assignee: zach → ddkilzer
Status: ASSIGNED → NEW
Attached patch patch v2Splinter Review
Attachment 53576 [details] [diff] (bugzilla-2.15-20011014-CVS-fix-tests.diff) does the following in addition to 'patch v1': o Fixes items 1 and 2 for t/005no_tabs.t. o Fixes typo "#Bugzilla Test 4#" (should be "5") in t/005no_tabs.t. o Changes spaces to tabs (a la Bug 104516) in: t/001compile.t t/002goodperl.t t/003safesys.t t/Support/Files.pm t/Support/Templates.pm Please note that 'patch v1' should be obsoleted, but I don't have privileges to do that (shouldn't a bug owner be able to edit the status of patches to the bugs s/he owns?).
Attachment #52529 - Attachment is obsolete: true
Comment on attachment 53576 [details] [diff] [review] patch v2 Looks good to me.
Attachment #53576 - Flags: review+
Checked in.
Status: NEW → RESOLVED
Closed: 24 years ago
Resolution: --- → FIXED
Component: Bugzilla-General → Testing Suite
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: