petdance/scratch — Issue #374: make warnings_tests:  Correct tests which run with warnings
Author: petdance
Created: 2011-11-14 05:55:48+00:00
State: open
Labels: cage, Pri-minor, Sev-medium, testing

In the course of work on TT #1922 this evening, I had occasion to run `make warnings_tests` for the first time. This target will `FAIL` test files which would otherwise `PASS` if they emit warnings. We should fix all tests such that they run warnings-free.
Here are the files which failed due to warnings:
{{{
Test Summary Report
-------------------
t/compilers/imcc/syn/const.t (Wstat: 1280 Tests: 35 Failed: 5)
Failed tests: 15-18, 21
Non-zero exit status: 5
t/compilers/imcc/syn/errors.t (Wstat: 1280 Tests: 7 Failed: 5)
Failed tests: 2-5, 7
Non-zero exit status: 5
t/compilers/imcc/syn/macro.t (Wstat: 512 Tests: 42 Failed: 2)
Failed tests: 31-32
Non-zero exit status: 2
t/compilers/imcc/syn/pasm.t (Wstat: 256 Tests: 1 Failed: 1)
Failed test: 1
Non-zero exit status: 1
t/compilers/imcc/syn/regressions.t (Wstat: 256 Tests: 21 Failed: 1)
Failed test: 15
Non-zero exit status: 1
t/op/basic.t (Wstat: 256 Tests: 23 Failed: 1)
Failed test: 23
Non-zero exit status: 1
t/pmc/exception-old.t (Wstat: 256 Tests: 22 Failed: 1)
Failed test: 16
Non-zero exit status: 1
t/pmc/filehandle.t (Wstat: 512 Tests: 27 Failed: 2)
Failed tests: 3, 21
Non-zero exit status: 2
t/pmc/nci.t (Wstat: 1280 Tests: 73 Failed: 5)
Failed tests: 1-3, 60-61
Non-zero exit status: 5
t/pmc/stringhandle.t (Wstat: 256 Tests: 25 Failed: 1)
Failed test: 9
Non-zero exit status: 1
t/pmc/sub.t (Wstat: 768 Tests: 78 Failed: 3)
Failed tests: 31-32, 44
Non-zero exit status: 3
Files=205, Tests=7028, 66 wallclock secs ( 0.87 usr 0.39 sys +
37.84 cusr 10.37 csys = 49.47 CPU)
Result: FAIL
make: *** [warnings_tests] Error 1
}}}

Originally http://trac.parrot.org/parrot/ticket/1941