diff options
| author | zeertzjq <zeertzjq@outlook.com> | 2026-04-23 09:16:19 +0800 |
|---|---|---|
| committer | zeertzjq <zeertzjq@outlook.com> | 2026-04-23 12:51:11 +0800 |
| commit | 06a47ac994e056fd38050c98881760ce6875a5c7 (patch) | |
| tree | 505ce87931c6a4d479f7720d0d6066d64487b249 | |
| parent | 0b7f2ac405a6429477d0059e5e996141ceb6a6e2 (diff) | |
vim-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: vim/vim#19890
https://github.com/vim/vim/commit/c91081d0e5d7b4cf5b467b0a622a3c74ef99a08f
Co-authored-by: Yasuhiro Matsumoto <mattn.jp@gmail.com>
| -rw-r--r-- | test/old/testdir/test_plugin_netrw.vim | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/test/old/testdir/test_plugin_netrw.vim b/test/old/testdir/test_plugin_netrw.vim index 5451fddb37..ddd6b23cb0 100644 --- a/test/old/testdir/test_plugin_netrw.vim +++ b/test/old/testdir/test_plugin_netrw.vim @@ -603,6 +603,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 |
