wok diff perl-test-warnings/description.txt @ rev 25678
Patch ghostscript CVE-2023-36664
author | Stanislas Leduc <shann@slitaz.org> |
---|---|
date | Fri Mar 08 14:12:03 2024 +0100 (6 months ago) |
parents | |
children |
line diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/perl-test-warnings/description.txt Fri Mar 08 14:12:03 2024 +0100 1.3 @@ -0,0 +1,11 @@ 1.4 +If you've ever tried to use Test::NoWarnings to confirm there are no warnings 1.5 +generated by your tests, combined with the convenience of done_testing to not 1.6 +have to declare a test count, you'll have discovered that these two features 1.7 +do not play well together, as the test count will be calculated before the 1.8 +warnings test is run, resulting in a TAP error. 1.9 + 1.10 +This module is intended to be used as a drop-in replacement for 1.11 +Test::NoWarnings: it also adds an extra test, but runs this test before 1.12 +done_testing calculates the test count, rather than after. 1.13 +It does this by hooking into done_testing as well as via an END block. 1.14 +You can declare a plan, or not, and things will still Just Work.