This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
t/re/reg_mesg.t: Add override of warning default on/off
authorKarl Williamson <khw@cpan.org>
Wed, 31 May 2017 19:08:33 +0000 (13:08 -0600)
committerKarl Williamson <khw@cpan.org>
Thu, 1 Jun 2017 13:05:16 +0000 (07:05 -0600)
commitd30277c7df69b4aca40edeb2ae3bf9bb529b01e8
tree056913ee2c80905e4976450777d2a7aa71e6b56f
parent9b5d391f84ebc32466959f6f8f90891b3930c4b9
t/re/reg_mesg.t: Add override of warning default on/off

This .t needs an overhaul to more cleanly accommodate the extra tasks it
has been given over the years.  But until then, this is a minimal
enhancement that will be useful in the commit after this one.

This adds the ability to specify that a particular pattern being tested
should generate a message which is raised by default vs one that isn't.
The messages are currently grouped in categories whose default is
determined by the category itself.  This commit avoids having to create
a new category when a message comes along that doesn't quite fit into
the existing ones.
t/re/reg_mesg.t