From f5f11b9e2f39a1647843f367a6ec85e64e01bf10 Mon Sep 17 00:00:00 2001 From: Thiago de Arruda Date: Sun, 10 Apr 2016 23:49:13 -0300 Subject: Remove indeterminism in oldfiles_spec.lua If Nvim is in a "Press ENTER..." screen before the `get_vvar()` call, the test will hang. --- test/functional/ex_cmds/oldfiles_spec.lua | 3 +++ 1 file changed, 3 insertions(+) (limited to 'test/functional/ex_cmds/oldfiles_spec.lua') diff --git a/test/functional/ex_cmds/oldfiles_spec.lua b/test/functional/ex_cmds/oldfiles_spec.lua index dac6757a97..3d90d20ab3 100644 --- a/test/functional/ex_cmds/oldfiles_spec.lua +++ b/test/functional/ex_cmds/oldfiles_spec.lua @@ -62,6 +62,9 @@ describe(':oldfiles!', function() _clear() execute('rshada! ' .. shada_file) + -- Ensure nvim is out of "Press ENTER..." screen + feed('') + -- Ensure v:oldfiles isn't busted. Since things happen so fast, -- the ordering of v:oldfiles is unstable (it uses qsort() under-the-hood). -- Let's verify the contents and the length of v:oldfiles before moving on. -- cgit