This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Avoid t/re/regexp.t failing on miniperl when displaying TODO test output.
authorNicholas Clark <nick@ccl4.org>
Sun, 1 Jan 2012 16:48:29 +0000 (17:48 +0100)
committerNicholas Clark <nick@ccl4.org>
Mon, 2 Jan 2012 10:30:00 +0000 (11:30 +0100)
commit65016092c02f30665d2b0ab8a4774926f71d0dc7
tree7d7126adeb21354bdddadad95ddc621ed5c6af36
parentf5aea3e0a38bf6cb0b8b7c2913f06ef81b848d27
Avoid t/re/regexp.t failing on miniperl when displaying TODO test output.

Change 1e9285c2ad54ae39 refactored Data::Dumper to load on miniperl.
t/re/regexp.t attempts to load Data::Dumper (in an eval) to display failure
output, including the failure of TODO tests. Hence Data::Dumper is now loaded
without error as part of minitest, so regexp.t then attempts to use
Data::Dumper to output better diagnostics. This fails (hard) because
Data::Dumper attempts to load Scalar::Util, which attempts to load B, which
bails out because this is miniperl.

It's not obvious that there's a 100% solution here that gets full-on
Data::Dumper functionality for miniperl.
t/re/regexp.t