diff --git a/xt/use-test-no-warnings.t b/xt/use-test-no-warnings.t index 43bc09f7c4..63f3e84b6c 100755 --- a/xt/use-test-no-warnings.t +++ b/xt/use-test-no-warnings.t @@ -21,7 +21,7 @@ use Test::NoWarnings; use Array::Utils qw( array_minus ); -my @t_files = qx{git grep --files-without-match "Test::NoWarnings" 't/*.t' 'xt/*.t'}; +my @t_files = qx{git grep --files-without-match "^use Test::NoWarnings" 't/*.t' 'xt/*.t'}; chomp for @t_files; my @exceptions = (