mirror of
https://github.com/neovim/neovim.git
synced 2025-12-12 09:32:39 +00:00
Merge #36792 unreliable tests
This commit is contained in:
@@ -66,9 +66,10 @@ int main(int argc, char **argv)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
} else if (strcmp(argv[1], "EXE") == 0) {
|
} else if (strcmp(argv[1], "EXE") == 0) {
|
||||||
fprintf(stderr, "ready $ ");
|
|
||||||
if (argc >= 3) {
|
if (argc >= 3) {
|
||||||
fprintf(stderr, "%s\n", argv[2]);
|
fprintf(stderr, "ready $ %s\n", argv[2]);
|
||||||
|
} else {
|
||||||
|
fprintf(stderr, "ready $ ");
|
||||||
}
|
}
|
||||||
} else if (strcmp(argv[1], "REP") == 0) {
|
} else if (strcmp(argv[1], "REP") == 0) {
|
||||||
if (argc != 4) {
|
if (argc != 4) {
|
||||||
|
|||||||
@@ -92,8 +92,10 @@ describe('terminal channel is closed and later released if', function()
|
|||||||
poke_eventloop()
|
poke_eventloop()
|
||||||
feed('<Ignore>') -- add input to separate two RPC requests
|
feed('<Ignore>') -- add input to separate two RPC requests
|
||||||
-- channel has been released after another main loop iteration
|
-- channel has been released after another main loop iteration
|
||||||
|
t.retry(20, nil, function()
|
||||||
eq(chans - 1, eval('len(nvim_list_chans())'))
|
eq(chans - 1, eval('len(nvim_list_chans())'))
|
||||||
end)
|
end)
|
||||||
|
end)
|
||||||
|
|
||||||
-- This indirectly covers #16264
|
-- This indirectly covers #16264
|
||||||
it('opened by jobstart(…,{term=true}), exited, and deleted by :bdelete', function()
|
it('opened by jobstart(…,{term=true}), exited, and deleted by :bdelete', function()
|
||||||
@@ -146,7 +148,7 @@ describe('no crash when TermOpen autocommand', function()
|
|||||||
screen = Screen.new(60, 4)
|
screen = Screen.new(60, 4)
|
||||||
end)
|
end)
|
||||||
|
|
||||||
it('processes job exit event when using jobstart(…,{term=true})', function()
|
it('processes job exit event on jobstart(…,{term=true})', function()
|
||||||
command([[autocmd TermOpen * call input('')]])
|
command([[autocmd TermOpen * call input('')]])
|
||||||
async_meths.nvim_command('terminal foobar')
|
async_meths.nvim_command('terminal foobar')
|
||||||
screen:expect([[
|
screen:expect([[
|
||||||
|
|||||||
Reference in New Issue
Block a user