Skip to content

Commit

Permalink
Merge pull request #357 from stdweird/fix_test_warnings_userinit
Browse files Browse the repository at this point in the history
ncm-useraccess: fix test warning acknowledge the chown used once warning
  • Loading branch information
ned21 committed Oct 29, 2014
2 parents 534e350 + f64426b commit 04ef383
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions ncm-useraccess/src/test/perl/userinit.t
Expand Up @@ -28,9 +28,12 @@ rmtree("target/test/home");

my @chown;

# disable the 'only used once' warning here
no warnings qw(once);
*NCM::Component::useraccess::chown = sub {
push(@chown, \@_);
};
use warnings qw(once);

# And only then, we REQUIRE and NOT USE the component package. We need
# REQUIRE because it's executed at runtime, and thus after our fake
Expand Down

0 comments on commit 04ef383

Please sign in to comment.