Skip to content

Commit 9b2803f

Browse files
khwilliamsonjkeenan
authored andcommitted
Prepare reg_mesg.t for warnings enabled upon invocation
Since some of the tests in this file test for default warning behavior, it must set the warnings to the defaults.
1 parent 6dc0bc8 commit 9b2803f

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

t/re/reg_mesg.t

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,12 @@ skip_all_without_unicode_tables();
1414
use strict;
1515
use open qw(:utf8 :std);
1616

17+
# Show that it works when all warnings are enabled upon invocation. This file
18+
# includes tests that the default warnings are enabled by default, and the
19+
# non-default ones aren't.
20+
use warnings;
21+
BEGIN { ${^WARNING_BITS} = undef } # Kludge to restore default warnings
22+
1723
# Kind of a kludge to mark warnings to be expected only if we are testing
1824
# under "use re 'strict'"
1925
my $only_strict_marker = ':expected_only_under_strict';

0 commit comments

Comments
 (0)