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) 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;