Commit: patch 9.2.0281: tests: Test_netrw_FileUrlEdit.. fails on Windows

3 views
Skip to first unread message

Christian Brabandt

unread,
Apr 2, 2026, 12:32:19 PM (13 hours ago) Apr 2
to vim...@googlegroups.com
patch 9.2.0281: tests: Test_netrw_FileUrlEdit.. fails on Windows

Commit: https://github.com/vim/vim/commit/c91081d0e5d7b4cf5b467b0a622a3c74ef99a08f
Author: Yasuhiro Matsumoto <matt...@gmail.com>
Date: Thu Apr 2 16:22:42 2026 +0000

patch 9.2.0281: tests: Test_netrw_FileUrlEdit.. fails on Windows

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 <matt...@gmail.com>
Signed-off-by: Christian Brabandt <c...@256bit.org>

diff --git a/src/testdir/test_plugin_netrw.vim b/src/testdir/test_plugin_netrw.vim
index 478908824..2e5da13d7 100644
--- a/src/testdir/test_plugin_netrw.vim
+++ b/src/testdir/test_plugin_netrw.vim
@@ -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
diff --git a/src/version.c b/src/version.c
index 2c47f0d72..d0b469248 100644
--- a/src/version.c
+++ b/src/version.c
@@ -734,6 +734,8 @@ static char *(features[]) =

static int included_patches[] =
{ /* Add new patch number below this line */
+/**/
+ 281,
/**/
280,
/**/
Reply all
Reply to author
Forward
0 new messages