If it is worthy, there's a bunch of things I would appreciate some feedback on: * does it make sense the use of 'seize' and 'release' as above (I am not an English native speaker and I am not sure).
I like them. They're quirky.
* What would be a sensible name: IO::Seize, Test::Stdout?
The latter, I think.
* It is necessary that I understand better the interaction of the code being tested and how Test:: modules and Test::Harness works
If you're tie'ing off STDOUT and STDERR, it should be fine.
* It would be better to make it a real Test:: module?
Perhaps:
stdout_is(print STDOUT "hello", "hello", 'print "hello" to STDOUT');
You might want to look at the TieOut module that comes with ExtUtils::MakeMaker. I myself have a version of it in the App::Info distribution, in t/lib:
http://search.cpan.org/src/DWHEELER/App-Info-0.25/t/lib/TieOut.pm
Regards,
David