tests: fix non-controversial misuse of pending (#11247)

Ref: https://github.com/neovim/neovim/pull/11184
This commit is contained in:
Daniel Hahler
2019-10-18 04:46:30 +02:00
committed by GitHub
parent 0785f8e8b1
commit 4bbad54817
8 changed files with 13 additions and 22 deletions

View File

@@ -41,7 +41,7 @@ describe(':write', function()
command("silent !ln -s test_bkc_file.txt test_bkc_link.txt")
end
if eval('v:shell_error') ~= 0 then
pending('Cannot create symlink', function()end)
pending('Cannot create symlink')
end
source([[
edit test_bkc_link.txt
@@ -61,7 +61,7 @@ describe(':write', function()
command("silent !ln -s test_bkc_file.txt test_bkc_link.txt")
end
if eval('v:shell_error') ~= 0 then
pending('Cannot create symlink', function()end)
pending('Cannot create symlink')
end
source([[
edit test_bkc_link.txt
@@ -75,8 +75,7 @@ describe(':write', function()
it("appends FIFO file", function()
-- mkfifo creates read-only .lnk files on Windows
if iswin() or eval("executable('mkfifo')") == 0 then
pending('missing "mkfifo" command', function()end)
return
pending('missing "mkfifo" command')
end
local text = "some fifo text from write_spec"