From 51e25df858b37e93e5ce0fc434ce35b7af67258e Mon Sep 17 00:00:00 2001 From: Graham Ollis Date: Wed, 7 Oct 2026 09:40:40 -0600 Subject: [PATCH 1/2] detect WSL2 when filtering PATH in tests (fixes #31) WSL2 kernel releases look like 6.6.87.2-microsoft-standard-WSL2, which the old /-Microsoft$/ check (WSL1 only) did not match, so Windows cmd.exe/powershell.exe under /mnt/c were picked up by the tests. Co-Authored-By: Claude Opus 5.5 --- t/lib/TestPath.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/t/lib/TestPath.pm b/t/lib/TestPath.pm index 62eb71c..9dc68c2 100644 --- a/t/lib/TestPath.pm +++ b/t/lib/TestPath.pm @@ -16,7 +16,7 @@ if($^O eq 'linux') chomp $data; $data; }; - if($release =~ /-Microsoft$/) + if($release =~ /microsoft/i) { $WSL = 1; @PATH = grep !m{^/mnt/[a-z]/}, @PATH; From 6f43761bde62870e783748a6c44a2838d545691b Mon Sep 17 00:00:00 2001 From: Graham Ollis Date: Wed, 7 Oct 2026 09:41:36 -0600 Subject: [PATCH 2/2] update changes Co-Authored-By: Claude Opus 5.5 --- Changes | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Changes b/Changes index 0e14c54..8fbb9dd 100644 --- a/Changes +++ b/Changes @@ -1,6 +1,8 @@ Revision history for {{$dist->name}} {{$NEXT}} + - Fix test failures under WSL2 by filtering Windows paths from PATH + (gh#31, gh#32) 0.35 2026-09-04 09:54:50 -0600 - Add unset method to remove environment variables (gh#14, gh#27, gh#30)