From e2c90b57502916fc0b3645e1ebe94dd230cf74f0 Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Tue, 21 Jul 2026 09:13:50 +0200 Subject: [PATCH] Bug 43117: Adjust xt test to catch commented use Test::NoWarnings Signed-off-by: David Nind Signed-off-by: Lisette Scheer Signed-off-by: Pedro Amorim --- xt/use-test-no-warnings.t | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 = (