]> git.ipfire.org Git - thirdparty/vim.git/commitdiff
patch 9.2.0281: tests: Test_netrw_FileUrlEdit.. fails on Windows v9.2.0281
authorYasuhiro Matsumoto <mattn.jp@gmail.com>
Thu, 2 Apr 2026 16:22:42 +0000 (16:22 +0000)
committerChristian Brabandt <cb@256bit.org>
Thu, 2 Apr 2026 16:22:42 +0000 (16:22 +0000)
Problem:  tests: Test_netrw_FileUrlEdit.. fails on Windows
          (after 3e60f03d942d6bb0f7)
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>
src/testdir/test_plugin_netrw.vim
src/version.c

index 478908824bc4a343aae436dd8d24880f252e50f1..2e5da13d750a3573f2957fed6c1cbe7356332bcf 100644 (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
index 2c47f0d722eeaca8612ae6ba18213c09325184d0..d0b469248538af5f07458bea2a10f10f608c351a 100644 (file)
@@ -734,6 +734,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    281,
 /**/
     280,
 /**/