You can use Test::Output under the same terms as Perl itself.
