patch 9.2.0281: tests: Test_netrw_FileUrlEdit.. fails on Windows

Problem:  tests: Test_netrw_FileUrlEdit.. fails on Windows
          (after 3e60f03d94)
Solution: Skip the test on Windows (Yasuhiro Matsumoto).

The Test_netrw_FileUrlEdit_pipe_injection() test fails on Windows with
E303 because '|' is not a valid filename character on Windows.  Since
the pipe character cannot appear in a Windows filename, the command
injection vector this test guards against does not apply on Windows.

closes: #19890

Signed-off-by: Yasuhiro Matsumoto <mattn.jp@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
This commit is contained in:
Yasuhiro Matsumoto
2026-04-02 16:22:42 +00:00
committed by Christian Brabandt
parent 7088926316
commit c91081d0e5
2 changed files with 3 additions and 0 deletions
+1
View File
@@ -596,6 +596,7 @@ func Test_netrw_hostname()
endfunc
func Test_netrw_FileUrlEdit_pipe_injection()
CheckUnix
CheckExecutable id
let fname = 'Xtestfile'
let url = 'file:///tmp/file.md%7C!id>'..fname
+2
View File
@@ -734,6 +734,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
281,
/**/
280,
/**/