| 1 |
Revision history for Test-Trap |
| 2 |
|
| 3 |
0.3.5 Wed 27 Jul 2022 05:58:02 AM CEST |
| 4 |
No changes to the libraries, just to the tests. Perl best |
| 5 |
practices form a moving target. |
| 6 |
- Stop using bareword filehandles; if it isn't deprecated |
| 7 |
already, it will be. |
| 8 |
- RT #143716: Perl pulled the rug from under me on untainting |
| 9 |
environment variables when it stopped treating an empty |
| 10 |
string as a safe PATH. Fix by deleting the offending |
| 11 |
environment variables instead, as suggested by Graham Knop. |
| 12 |
|
| 13 |
0.3.4 Sun Oct 14 20:39:41 CEST 2018 |
| 14 |
For this release, many thanks go to Todd Rinaldo, who found |
| 15 |
that my fix for the $^E clobbering wound up clobbering $! in |
| 16 |
every basic test. |
| 17 |
- Declared some required and optional dependencies. |
| 18 |
- RT #127112 is addressed, using the patch from [email protected] |
| 19 |
augmented wtih a comment. |
| 20 |
- A regression test has been added for this. |
| 21 |
|
| 22 |
0.3.3 Tue Aug 22 02:06:09 CEST 2017 |
| 23 |
For this release, many thanks go to Slaven Rezic, who found |
| 24 |
that Test::More::is() (or Test2::Formatter::TAP::write()) |
| 25 |
clobbers $^E on Windows. |
| 26 |
- RT #105125 is addressed: The tests now use a copy of $^E |
| 27 |
taken before Test::More gets a chance to touch it. |
| 28 |
- Further, the Test::Trap test methods might also clobber $^E |
| 29 |
(via Test::More or other modules), so they now localize $^E |
| 30 |
before invoking the callback. |
| 31 |
- Regression tests have been added for this. |
| 32 |
|
| 33 |
0.3.2 Tue Feb 24 00:19:23 CET 2015 |
| 34 |
The tempfile-preserve strategy was (always) broken on |
| 35 |
non-perlio perls. |
| 36 |
Also, some of the tests were (recently) noisy on old perls. |
| 37 |
Test::Trap::Builder::TempFile: |
| 38 |
- add a GOTPERLIO guard to each IO_LAYERS block. |
| 39 |
Tests: |
| 40 |
- 03-files.pl now avoid "used only once" warnings. |
| 41 |
|
| 42 |
0.3.1 Mon Feb 23 21:43:30 CET 2015 |
| 43 |
This release doesn't touch library code, but addresses some |
| 44 |
test issues: |
| 45 |
- It fixes RT #102271 by checking for the presence of a |
| 46 |
utf8-layer on the original STDOUT, instead of assuming its |
| 47 |
absence. |
| 48 |
- It makes some test code cleaner. |
| 49 |
- It silences redefine warnings during testing on certain |
| 50 |
platforms. |
| 51 |
Library files: No change but version bump. |
| 52 |
Tests: |
| 53 |
- 03-files* now use another global to specify the class to |
| 54 |
require, replacing a quick-and-dirty hack that turned out to |
| 55 |
be noisy on some platforms, including Cygwin. |
| 56 |
- {15-tempfile,16-systemsafe}-options.t now check for the |
| 57 |
presence of utf8-layer on STDOUT, instead of assuming its |
| 58 |
absence. (Either of the environment variables PERL_UNICODE |
| 59 |
and PERL5OPT could cause such a layer to be present, and |
| 60 |
there might be other ways to do it.) |
| 61 |
|
| 62 |
0.3.0 Thu Dec 18 21:57:51 CET 2014 |
| 63 |
This release, in brief: |
| 64 |
- improves clarity through nomenclature: |
| 65 |
* renames "(output layer) backend implementation" to |
| 66 |
"(capture) strategy", for more standard nomenclature |
| 67 |
(and less of a mouthful); |
| 68 |
* renames "pseudo-layer" to "multi-layer" (if so |
| 69 |
declared) or "non-trapping layer" (neither is a direct |
| 70 |
analogue to PerlIO pseudo layers, so the nomenclature |
| 71 |
was misleading); |
| 72 |
- adds (import) options to the TempFile and SystemSafe capture |
| 73 |
strategy factories, allowing for different ways to handle |
| 74 |
PerlIO layers; |
| 75 |
- using these for two new standard capture strategies, |
| 76 |
"tempfile-preserve" and "systemsafe-preserve"; and |
| 77 |
- fixes a bug in SystemSafe. |
| 78 |
And, in more detail ... |
| 79 |
Test::Trap::Builder: |
| 80 |
- Changes method names per the nomenclature changes, leaving |
| 81 |
back-compat aliases behind. |
| 82 |
- Changes error message per the nomenclature changes. (No |
| 83 |
back-compat possible, sorry.) |
| 84 |
- Updates the documentation. |
| 85 |
Test::Trap::Builder::{TempFile,SystemSafe}: |
| 86 |
- Import now takes arguments: |
| 87 |
strategy name (default {"tempfile","systemsafe"}); and |
| 88 |
strategy options (default empty hash). |
| 89 |
- The following options are supported: |
| 90 |
preserve_io_layers (boolean; default false); and |
| 91 |
io_layers (colon-separated string; default unset). |
| 92 |
Test::Trap::Builder::SystemSafe: |
| 93 |
- Fixes a bug where the original perlio layers were not |
| 94 |
restored after the trap was sprung. |
| 95 |
Test::Trap::Builder::{PerlIO,TempFile,SystemSafe}: |
| 96 |
- Updates the code in accordance with Test::Trap::Builder |
| 97 |
changes; see above. |
| 98 |
- Updates the documentation. |
| 99 |
Test::Trap: |
| 100 |
- Imports new capture strategy, "tempfile-preserve", from |
| 101 |
TempFile with option preserve_io_layers. |
| 102 |
- Imports new capture strategy, "systemsafe-preserve", from |
| 103 |
SystemSafe with option preserve_io_layers. |
| 104 |
- Updates the code in accordance with Test::Trap::Builder |
| 105 |
changes; see above. |
| 106 |
- Updates the documentation. |
| 107 |
Tests: |
| 108 |
- changes variable names and comments in accordance with |
| 109 |
nomenclature changes; |
| 110 |
- adds tests for the no-restore bug in t/03-files.pl (hence |
| 111 |
for each tested strategy); |
| 112 |
- adds t/03-files-{tempfile,systemsafe}-preserve.t to run the |
| 113 |
basic tests against the new capture strategies; |
| 114 |
- accounts for the changed error message in t/06-layers.t; |
| 115 |
- adds t/{15-tempfile,16-systemsafe}-options.t to check |
| 116 |
capture strategies of varying options. |
| 117 |
|
| 118 |
0.2.5 Sun Nov 16 18:31:42 CET 2014 |
| 119 |
This release localizes $! (ERRNO) for internal operations that |
| 120 |
change it, as suggested by Felipe Gasper. For the same |
| 121 |
operations, it also localizes $^E (extended OS error). |
| 122 |
Library files: |
| 123 |
- Localize $! and $^E for internal operations that change them. |
| 124 |
Tests: |
| 125 |
- Check that bare test blocks leave $!, %!, and $^E unchanged, |
| 126 |
but that blocks that modify $! and $^E still do so. |
| 127 |
Also: |
| 128 |
- Added Module::Build to the configure_requires. |
| 129 |
- Fix emacs mode line on t/14-leaks.t. |
| 130 |
- Better comments in lib/Test/Trap/Builder.pm. |
| 131 |
|
| 132 |
0.2.4 Sun Mar 30 10:02:16 CEST 2014 |
| 133 |
This release fixes a memory leak with the default tempfile |
| 134 |
backend layer implementation for trapping output. The |
| 135 |
systemsafe alternative backend had the same kind of leak, and |
| 136 |
has also been fixed. (The perlio alternative backend was not |
| 137 |
affected.) |
| 138 |
Thanks go again to Felipe Gasper for discovering this! |
| 139 |
Test::Trap::Builder: |
| 140 |
- Add a method ExceptionFunction to make it easier to avoid |
| 141 |
circular references arising from registered closures. |
| 142 |
Document and export this method. |
| 143 |
Test::Trap::Builder::TempFile: |
| 144 |
- Break a circular reference chain. |
| 145 |
Test::Trap::Builder::SystemSafe: |
| 146 |
- Break a similar but slightly more complicated circular |
| 147 |
reference chain. |
| 148 |
Tests: |
| 149 |
- Added t/14-leaks.t to check that the reference count is as |
| 150 |
expected, at least with trivial code and standard setup for |
| 151 |
all three output layer backends. |
| 152 |
Also: |
| 153 |
- Use [email protected] for my email address. |
| 154 |
- Update copyright years. |
| 155 |
- Update MANIFEST.SKIP &c for use of git (goodbye subversion). |
| 156 |
|
| 157 |
0.2.3 Mon Dec 30 14:46:15 CET 2013 |
| 158 |
Library files: |
| 159 |
- RT #87263: typo fixes, courtesy [email protected]. |
| 160 |
- Localize the trap coderef, so that it does not hold on to |
| 161 |
what it closes over, creating stale references, but lets |
| 162 |
them go out of scope; thanks go to Felipe Gasper. |
| 163 |
Documentation: |
| 164 |
- Some clarification for RT #91687: Wrong exit code after die. |
| 165 |
Tests: |
| 166 |
- Regression test for the stale references. |
| 167 |
|
| 168 |
0.2.2 Fri Mar 2 02:23:04 CET 2012 |
| 169 |
Test::Trap::Builder::TempFile & Test::Trap::Builder::SystemSafe: |
| 170 |
- RT #61776: Remove temporary files at first opportunity; |
| 171 |
thanks go to Ian Goodacre. |
| 172 |
Documentation: |
| 173 |
- RT #61773: return from trap function |
| 174 |
Document what trap { ... } returns. |
| 175 |
Tests: |
| 176 |
- RT #75430: Failing tests in 06-layer.t |
| 177 |
Convert a number of die_is to die_like, handling cases with |
| 178 |
and without trailing comma from carp. |
| 179 |
- Unset another taint-checked environment variable, CDPATH; |
| 180 |
thanks go to CPAN testers. |
| 181 |
|
| 182 |
0.2.1 Tue Dec 29 23:14:45 CET 2009 |
| 183 |
Documentation: |
| 184 |
- fix a typo, [RT #48941]; thanks go to David Taylor; |
| 185 |
Tests: |
| 186 |
- use .PL-files to build the test files t/08-fork.t and |
| 187 |
t/11-systemsafe-basic.t instead of dispatching through |
| 188 |
*-taint.t and *-no-taint.t files at runtime; |
| 189 |
Build: |
| 190 |
- setup the build of the above test files in Build.PL; |
| 191 |
- add a ACTION_distmeta override to check for patch to or |
| 192 |
version of Module::Build::Compat with correct handling of |
| 193 |
PL_FILES/PL_files; |
| 194 |
- update the MANIFEST and .SKIP files accordingly. |
| 195 |
|
| 196 |
0.2.0 Tue Sep 30 04:28:30 CEST 2008 |
| 197 |
Test::Trap::Builder::SystemSafe: |
| 198 |
- add explicit close()s, as it seems various files otherwise |
| 199 |
remain open for too long; |
| 200 |
- register the teardown sub as soon as we have a tempfile, so |
| 201 |
that we'll close it in teardown even if internal exceptions |
| 202 |
are raised; |
| 203 |
Test::Trap::Builder::Tempfile: |
| 204 |
- added an explicit close($fh), as it seems it otherwise |
| 205 |
remains open for too long; |
| 206 |
- register the teardown sub as soon as we have a tempfile, so |
| 207 |
that we'll close it in teardown even if internal exceptions |
| 208 |
are raised; |
| 209 |
Test::Trap::Builder: |
| 210 |
- add an ' id ' member to the object, for use with tag-on |
| 211 |
properties, as the ref stringification does not survive a |
| 212 |
pseudo-fork (inside-out objects are *hard*); |
| 213 |
- make sure all registered teardowns are called, even after |
| 214 |
one or more internal exceptions; |
| 215 |
Test::Trap: |
| 216 |
- use a different workaround (by way of Teardown) for |
| 217 |
$SIG{__WARN__} temporary value, as it seems local %SIG does |
| 218 |
not restore the previous value or lack thereof upon scope |
| 219 |
exit (may perlbug that one); |
| 220 |
Tests: |
| 221 |
- add a regression test for $SIG{__WARN__} restoration to |
| 222 |
t/03-files.pl; |
| 223 |
- add a regression test for the ", <$fh> line 1." bug to |
| 224 |
t/03-files.pl; |
| 225 |
- t/03-files.pl and t/06-layers.t: add necessary close()s and |
| 226 |
local *FH to make sure all files are closed before exiting |
| 227 |
(as otherwise, tempfiles are not being cleaned on windows); |
| 228 |
- added "~" to the characters accepted in the $^X path, for |
| 229 |
t/11-systemsafe-basic.pl; |
| 230 |
- reorganize: move "unnumbered" tests to xt/author; |
| 231 |
Build: |
| 232 |
- bump the minor version number, in response to the internal |
| 233 |
changes in Test::Trap::Builder; |
| 234 |
- don't list Config as a prereq, as that seems to mess up |
| 235 |
CPANPLUS(?) installations; |
| 236 |
- updated MANIFEST, MANIFEST.SKIP, and Build.PL (adding |
| 237 |
ACTION_authortest) in accordance with the above test |
| 238 |
reorganization. |
| 239 |
|
| 240 |
0.1.2 Fri Sep 12 17:30:42 CEST 2008 |
| 241 |
Test::Trap::Builder::TempFile: |
| 242 |
- use *$globref, not $globref directly -- I have no idea why |
| 243 |
this suddenly broke, but it did; |
| 244 |
Tests: |
| 245 |
- make t/10-tester.t independent of the exact format of the |
| 246 |
Test::More diagnostics -- just dependent on it staying the |
| 247 |
same within one process; |
| 248 |
- thanks go to Andreas Koenig, cpantesters, and Michael |
| 249 |
Schwern for providing early warning that this was going |
| 250 |
to fail! |
| 251 |
- make t/03-files.pl use backticks (`) instead of null chars |
| 252 |
(\0) as a warning record separator -- makeshift fix -- |
| 253 |
I should do better, but this must do for now; |
| 254 |
Build: |
| 255 |
- up the perl dependency to 5.6.2 -- 5.6.0/5.6.1 may be |
| 256 |
salvageable, but do not seem worth it. |
| 257 |
|
| 258 |
0.1.1 Tue Mar 11 20:08:31 CET 2008 |
| 259 |
Documentation: |
| 260 |
- document the indexing/slicing of ->return and ->warn; |
| 261 |
- smaller tweaks; |
| 262 |
- new methods *_isa_ok; |
| 263 |
Test::Trap: |
| 264 |
- usage patterns clearly indicate we need *_isa_ok tests: a |
| 265 |
$trap->did_return w/BAIL_OUT followed by an |
| 266 |
isa_ok($trap->return(0)) w/BAIL_OUT must constitute the |
| 267 |
clearest test-trap anti-pattern since C<() = trap {...}>; |
| 268 |
- note: *_can_ok is still out, since it does not take any |
| 269 |
kind of name, and the TTB interface still expects a name; |
| 270 |
Tests: |
| 271 |
- subclass Pod::Coverage so that it treats the functions |
| 272 |
"imported" from Test::Trap::Builder as though they were |
| 273 |
native, not imported, to the package we're testing; |
| 274 |
- update t/pod-coverage.t to ignore the latest methods and |
| 275 |
functions somehow documented: layer:*, *_isa_ok, Next, |
| 276 |
Prop, Run, etc; |
| 277 |
- prevent t/99-coverage.t exiting with code 8 on success, now |
| 278 |
that Test-Simple actually catches that stuff; |
| 279 |
Build: |
| 280 |
- up the Test::Tester dependency to 0.107 -- I don't know |
| 281 |
what broke t/10-tester.t; I don't think it was anything of |
| 282 |
mine -- but upgrading Test::Tester fixed it. |
| 283 |
|
| 284 |
0.1.0 Mon Jan 14 18:31:09 CET 2008 |
| 285 |
Overall: |
| 286 |
- Continuing to fix small stuff, but also beginning to mess |
| 287 |
with the interfaces, adding new stuff and rewriting most of |
| 288 |
the builder. |
| 289 |
- Applied a patch from Michael Schilli (in response to a bug |
| 290 |
reported by Kimo Rosenbaum) adding UNLINK => 1 to the |
| 291 |
arguments for File::Temp::tempfile(). (Duh!) |
| 292 |
Documentation: |
| 293 |
- revised section on TTB exports; |
| 294 |
- revised section on TTB methods; |
| 295 |
- document the new pseudo-layers; |
| 296 |
Nomenclature: |
| 297 |
- s/trapper layer/trap layer/g; |
| 298 |
- s/trap (module|package)/trapper/g; # (and similar) |
| 299 |
- s/result object/trap object/g; # consistency |
| 300 |
- s/object/trap/g; # argspec ~~ clarity |
| 301 |
- s/all/entirety/g; # argspec ~~ s/adjective/noun/ |
| 302 |
- s/indexed/element/g; # argspec ~~ s/adjective/noun/ |
| 303 |
- ... but keep backwards compatibility with the previous argspec, |
| 304 |
for now (just don't advertise it in the docs); |
| 305 |
Test::Trap::Builder: |
| 306 |
- clean up the test method generation code; |
| 307 |
- clean up the accessor method generation code; |
| 308 |
- clean up the layer registration code; |
| 309 |
- pass the args string to the simple layers; |
| 310 |
- new export method: Prop, returning a hash for tag-on properies; |
| 311 |
- new export method: DESTROY, cleaning up tag-on properties; |
| 312 |
- new export method: TestFailure, running on_test_failure tag-on; |
| 313 |
- new export method: TestAccessor, returning test_accessor tag-on; |
| 314 |
- pull out members test and accessor, as these are conceptually |
| 315 |
(private) trapper class state, not builder instance members; |
| 316 |
- pull out member output_layer_backend, as this is |
| 317 |
conceptually (private) builder class state, not a builder |
| 318 |
instance member; |
| 319 |
- turn members _code, _layers, _teardown, _test_accessor, and |
| 320 |
_exception, (all without the leading underscore) into tag-on |
| 321 |
properties, rather than pollute the trap object; |
| 322 |
- get rid of more trap object pollution: __exception; |
| 323 |
- in test callback argspecs, refer to trap objects as "trap", |
| 324 |
not "object"; |
| 325 |
- better handling of exceptions in layers and teardown. |
| 326 |
Test::Trap: |
| 327 |
- run the test failure callback from the quiet() test; |
| 328 |
- new utility method: diag_all, basically {diag dump $self}; |
| 329 |
- new utility method: diag_all_once, a "smarter" version. |
| 330 |
- new (non-default) pseudo-layers: |
| 331 |
:void - user code is trapped in void context |
| 332 |
:scalar - user code is trapped in scalar context |
| 333 |
:list - user code is trapped in list context |
| 334 |
:on_fail() - method name for test failures callback |
| 335 |
Tests: |
| 336 |
- full coverage for the new methods and exception handling; |
| 337 |
- t/00-load.t does BAIL_OUT if Test::Trap cannot be used; |
| 338 |
- t/07-subclass.t no longer needs to test the case of the empty |
| 339 |
default_output_layer_backends(), since this has now been |
| 340 |
removed from the extension interface; |
| 341 |
- t/06-layers.t cleaned up and expanded to cover the new layers; except |
| 342 |
- t/10-tester.t covers the :on_fail() layer; |
| 343 |
- t/10-tester.t now tests a simple non-leaveby accessor too; |
| 344 |
- t/11-systemsafe-basic.pl now actually prints diagnostics when the |
| 345 |
system() call fails. Duh! (I still don't know why some Cygwin |
| 346 |
setups fails these tests, but I'd sure like to.) |
| 347 |
|
| 348 |
0.0.23 Mon Jun 25 22:47:50 CEST 2007 |
| 349 |
More blead stuff; otherwise just making a convenient small-stuff cut. |
| 350 |
Test::Trap: |
| 351 |
- Don't use IO::Handle here. (Only needed with File::Temp.) |
| 352 |
Test::Trap::Builder::PerlIO: |
| 353 |
- Don't need ->autoflush, nor IO::Handle. |
| 354 |
Test::Trap::Builder::TempFile: |
| 355 |
- Need IO::Handle, so use it. |
| 356 |
Test::Trap::Builder::SystemSafe: |
| 357 |
- Need IO::Handle, so use it. |
| 358 |
- The strange buffering bug seems to have disappeared |
| 359 |
(between revisions 99 and 100), though I have no idea how. |
| 360 |
This ought to mean I no longer need to maintain the clumsy |
| 361 |
work-around. So, removed! |
| 362 |
Tests: |
| 363 |
- As a concession to the CPANTS game, reinstated the pod tests. :) |
| 364 |
- The regression test for the workaround for the pseudo-fork |
| 365 |
bug was broken. Fixed by using the (implicit) :default |
| 366 |
layer in t/08-fork.pl. |
| 367 |
- t/02-reentrant.t caused a warning under bleed. Fixed. |
| 368 |
- t/03-files.pl is now blead-ready (warning texts changed). |
| 369 |
- t/11-systemsafe-basic.pl now detects system() failure and |
| 370 |
fails the relevant tests as well (thank you cpan testsers). |
| 371 |
|
| 372 |
0.0.22 Sun May 20 23:21:36 CEST 2007 |
| 373 |
No big changes this time. |
| 374 |
Cleanup: |
| 375 |
- remove unused Getopt::Long from tests; |
| 376 |
- rearrange some tests for better readability; |
| 377 |
- rewrite some systemsafe pod for better readability. |
| 378 |
Tests: |
| 379 |
- delete $ENV{ENV} (tainted); |
| 380 |
- for coverage, first don't use Test::More in t/99-coverage.t; |
| 381 |
- for coverage, test the internals of exiting breaking badly; |
| 382 |
- simpler (and better covering) subclass tests. |
| 383 |
Test::Trap: |
| 384 |
- don't AUTOLOAD on behalf of Test::More after all (unclean); |
| 385 |
- last TEST_TRAP_EXITING rather than goto EXITING (avoid collisions). |
| 386 |
Test::Trap::Builder: |
| 387 |
- localize the builder's internals of the trap object, so |
| 388 |
that they are gone as soon as the trap has sprung, leaving |
| 389 |
pay data only; |
| 390 |
- last TEST_TRAP_BUILDER_INTERNAL_EXCEPTION rather than |
| 391 |
goto INTERNAL_EXCEPTION (avoid collision); |
| 392 |
- note (in the pod) a caveat for diamond inheritance wrt |
| 393 |
autogeneration of test methods. |
| 394 |
Build: |
| 395 |
- don't include author's tests (pod*, kwalitee, etc) in the tarball; |
| 396 |
- note _all_ mandatory module dependencies (overkill?). |
| 397 |
|
| 398 |
0.0.21 Sun Oct 29 15:53:07 CET 2006 |
| 399 |
Test::Trap::Builder::SystemSafe: |
| 400 |
- Fix typo in the NAME section of the POD. |
| 401 |
Test::Trap::Builder: |
| 402 |
- Export a method ->TestAccessor, giving the tested accessor's name. |
| 403 |
- Remove (ugly) register method ->test_method. |
| 404 |
- Add (cleaner) register method ->test. |
| 405 |
Test::Trap: |
| 406 |
- Better diagnostics to failing *_ok/*_nok test. |
| 407 |
- AUTOLOAD Test::More when required. |
| 408 |
|
| 409 |
0.0.20 Sun Oct 22 09:21:55 CEST 2006 |
| 410 |
Test::Trap::Builder: |
| 411 |
- Backend implementations are now methods, almost layers, not functions. |
| 412 |
- Called with the (layer) name, the fileno, and the globref. |
| 413 |
- local(*$globref) is now left to the implementation. |
| 414 |
- Add method ->trap, implementing trap entry. |
| 415 |
- Add exportable methods Run, Next, Exception, Teardown: |
| 416 |
- Run runs the user's code; |
| 417 |
- Next continues to the next layer; |
| 418 |
- Exception raises an internal exception; |
| 419 |
- Teardown registers cleanup code. |
| 420 |
Test::Trap::Builder::TempFile, Test::Trap::Builder::PerlIO: |
| 421 |
- Use ->Teardown instead of &DESTROY. |
| 422 |
Add Test::Trap::Builder::SystemSafe. |
| 423 |
- Add three test scripts for this. |
| 424 |
- Work hard, and make those tests pass on 5.6.2! :-) |
| 425 |
t/03-files.pl: Simpler, less hacky, choice of backend. |
| 426 |
t/07-subclass.t: Use the core alarm(), not the Time::HiRes one. |
| 427 |
t/08-fork.t: Remember to wait() on all children. |
| 428 |
t/99-coverage.t: What I cannot test without hacking. |
| 429 |
t/*{-no-,-}taint.t: |
| 430 |
- Since Windows fork() does not work with taint mode. |
| 431 |
t/*.t, t/*.pl: |
| 432 |
- Add comments and refactor into subroutines. |
| 433 |
- Replace pass()/fail() with simpler/clearer ok(). |
| 434 |
|
| 435 |
0.0.19 Wed Sep 27 20:48:20 CEST 2006 |
| 436 |
No new functionality -- just bugfixes! |
| 437 |
Address three portability issues: |
| 438 |
- added binmode to the second handle on the tempfile; |
| 439 |
- skip timout tests if Time::HiRes::ualarm cannot be imported; |
| 440 |
- todo & skip the fork test on windows; |
| 441 |
- thanks go to Alexandr Ciornii for reporting these failures! |
| 442 |
Also: |
| 443 |
- document the fork() issue on Windows as a Test::Trap bug; |
| 444 |
- just skip the fork tests on platforms without fork; |
| 445 |
- drop the Time::HiRes dependency (we only need it for a test); |
| 446 |
- a little more POD and code (readability) cleanup. |
| 447 |
|
| 448 |
0.0.18 Mon Sep 25 23:49:48 CEST 2006 |
| 449 |
Basically just pushing to get a well-packaged version out. |
| 450 |
Packaged with a newer MB to get a (hopefully) better META.yml. |
| 451 |
Cleaned up the error messages somewhat. |
| 452 |
|
| 453 |
0.0.17 Sat Sep 23 00:47:13 CEST 2006 |
| 454 |
Overview: |
| 455 |
- Test::Temp gets new optional layers: |
| 456 |
:stdout(perlio) |
| 457 |
:stdout(tempfile) |
| 458 |
:stderr(perlio) |
| 459 |
:stderr(tempfile) |
| 460 |
- Test::Temp interface is otherwise unchanged. |
| 461 |
- Test::Trap::Builder interface is mostly unchanged, but now: |
| 462 |
- treats braces in layer names as syntactical; |
| 463 |
- has an interface for registering output layer backends; |
| 464 |
- also lets you register default backends; |
| 465 |
- has some more changes in non-interface (internal) functions. |
| 466 |
- Test::Trap::Builder::TempFile added. |
| 467 |
- Test::Trap::Builder::PerlIO added. |
| 468 |
Added a File::Temp backend for output layers, and require it. |
| 469 |
Made the PerlIO backend optional, and require no more than 5.6.0. |
| 470 |
Moved each backend to its own file. |
| 471 |
Update the tests to cover both backends. |
| 472 |
Skip the PerlIO backend tests if PerlIO is not availible. |
| 473 |
For whatever reason, make noisy ugly META.yml after upgrades. |
| 474 |
Let the user specify implementation, f ex: ":stdout(perlio)". |
| 475 |
Test this new interface. |
| 476 |
Update the POD. |
| 477 |
|
| 478 |
0.0.16 Tue Sep 19 21:52:03 CEST 2006 |
| 479 |
Note dependency on perl 5.8.0 and Time::HiRes. |
| 480 |
Pod updates to Builder.pm. |
| 481 |
Added tests for layer permutation :raw:warn:stderr:stdout:exit:die. |
| 482 |
Added tester tests for TODO and SKIP. |
| 483 |
|
| 484 |
0.0.15 Mon Sep 18 23:53:05 CEST 2006 |
| 485 |
Move the extension interface into its own Test::Trap::Builder. |
| 486 |
Change the extension interface somewhat: |
| 487 |
- methods on the builder object, not the calling package; |
| 488 |
- simpler methods for making accessors; |
| 489 |
- methods also for registering test method prototypes; |
| 490 |
- generate test methods from accessor + test pairs; |
| 491 |
- ... even if the test or accessor is inherited; |
| 492 |
- &layer_implementation needs both $module and $Builder now; |
| 493 |
- update the tests accordingly. |
| 494 |
Also, added some new tests for the builder. |
| 495 |
|
| 496 |
0.0.14 Tue Sep 5 16:40:13 CEST 2006 |
| 497 |
Rewrite the "layer:$name" methods: |
| 498 |
- return the layer implementation rather than be it, and |
| 499 |
- can handle multi_layer definitions as well, |
| 500 |
- changing &layer, &layer_implementation, and &multi_layer. |
| 501 |
Update the POD accordingly. |
| 502 |
Add an example using the extension interface. |
| 503 |
Polish the POD, and add some more vertical spacing. |
| 504 |
|
| 505 |
0.0.13 Tue Aug 29 06:54:05 CEST 2006 |
| 506 |
Add the standard test methods. |
| 507 |
Document them -- overall, not one by one. |
| 508 |
Test them -- using Test::Tester. |
| 509 |
Add a dependency on Test::Tester. |
| 510 |
Add a trustme for the pod coverage check. |
| 511 |
Add a dependency on Data::Dump (for quoting, more or less). |
| 512 |
Add factories for accessors and test methods. |
| 513 |
Let array accessors produce elements and slices as well. |
| 514 |
Add extra test methods: did_die, did_exit, did_return, quiet. |
| 515 |
Document these. |
| 516 |
Test them -- using Test::Tester. |
| 517 |
|
| 518 |
0.0.12 Sun Aug 27 03:05:45 CEST 2006 |
| 519 |
Don't trap exits in children! Revert to outer exit-handler instead. |
| 520 |
Test undefined *CORE::GLOBAL::exit. |
| 521 |
Test forked exits. |
| 522 |
Document the fork/exit caveat. |
| 523 |
Rename some layers: :return:raw are now :raw:flow. |
| 524 |
Base non-empty layer specifications too on :default. |
| 525 |
Tests updated accordingly. |
| 526 |
|
| 527 |
0.0.11 Sun Aug 27 01:51:30 CEST 2006 |
| 528 |
Test a bad class definition. |
| 529 |
Clean up the code. |
| 530 |
|
| 531 |
0.0.10 Sun Aug 27 01:18:09 CEST 2006 |
| 532 |
Add tests for subclassing. |
| 533 |
Implement subclassing. |
| 534 |
|
| 535 |
0.0.9 Sat Aug 26 23:51:26 CEST 2006 |
| 536 |
Implement layers as methods, anonymous or with mangled names. |
| 537 |
Update the special layers test accordingly. |
| 538 |
Move POD to beyond __END__. |
| 539 |
|
| 540 |
0.0.8 Sat Aug 26 22:19:53 CEST 2006 |
| 541 |
s/mode/leaveby/g; |
| 542 |
|
| 543 |
0.0.7 Thu Aug 24 04:35:04 CEST 2006 |
| 544 |
Implement user-defined trapper layers! Wrappers are now layers! |
| 545 |
Test trapper layers! |
| 546 |
|
| 547 |
0.0.6 Thu Aug 24 02:28:08 CEST 2006 |
| 548 |
Protect the method calls of the local $trap test. |
| 549 |
Pull the wrapper list out of the exported sub and into its factory. |
| 550 |
Add a &write_trapper factory to replace &_trap_std{err,out}. |
| 551 |
Trap warnings as well. |
| 552 |
Add tests for trapping warnings. |
| 553 |
|
| 554 |
0.0.5 Wed Aug 23 18:32:28 CEST 2006 |
| 555 |
Back to exporting just a scalar instead of the glob. |
| 556 |
Export an anonymous closure combo instead of our $trap / &trap. |
| 557 |
Eliminate our $trap / &trap. (Use a factory instead.) |
| 558 |
Update the tests accordingly. |
| 559 |
|
| 560 |
0.0.4 Wed Aug 23 15:44:00 CEST 2006 |
| 561 |
New test: Apply local() to the scalar. |
| 562 |
Implementation: Export a glob instead of just the scalar. |
| 563 |
|
| 564 |
0.0.3 Wed Aug 23 03:39:03 CEST 2006 |
| 565 |
Decompose the different wrappers. Eliminate the %trap hash. |
| 566 |
Update tests to account for: |
| 567 |
- missing 'die' was '', is now undef; |
| 568 |
- void 'return' was [undef], is now []; |
| 569 |
- missing 'return' was context dependent, is now undef. |
| 570 |
|
| 571 |
0.0.2 Wed Aug 23 00:01:14 CEST 2006 |
| 572 |
Export a global scalar, by default $trap, instead of &trapped. |
| 573 |
Make &trap merely the default name of the function. |
| 574 |
Update tests accordingly. |
| 575 |
Test for ->import failing in various ways. |
| 576 |
Query exists &CORE::GLOBAL::exit instead of defined *...{CODE}. |
| 577 |
Add pod. |
| 578 |
|
| 579 |
0.0.1 Sun Aug 6 15:26:47 CEST 2006 |
| 580 |
Began extracting useful stuff from messy old code. |
| 581 |
|