Skip to content

Commit

Permalink
set global $^W for tests that require it
Browse files Browse the repository at this point in the history
  • Loading branch information
grantm committed Jun 19, 2012
1 parent 789a422 commit 2ae1f11
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions t/1_XMLin.t
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@ use IO::File;
use File::Spec;


# The suppress-able warnings still check the global flag

$^W = 1;

# Initialise filenames and check they're there

my $XMLFile = File::Spec->catfile('t', 'test1.xml'); # t/test1.xml
Expand Down
4 changes: 4 additions & 0 deletions t/A_XMLParser.t
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@ use IO::File;
use File::Spec;


# The suppress-able warnings still check the global flag

$^W = 1;

# Initialise filenames and check they're there

my $XMLFile = File::Spec->catfile('t', 'test1.xml'); # t/test1.xml
Expand Down

0 comments on commit 2ae1f11

Please sign in to comment.