mirror of
				https://github.com/neovim/neovim.git
				synced 2025-10-26 04:17:01 +00:00 
			
		
		
		
	functests: Fix tests
This commit is contained in:
		| @@ -118,7 +118,7 @@ describe('server -> client', function() | ||||
|  | ||||
|   describe('when the client is a recursive vim instance', function() | ||||
|     before_each(function() | ||||
|       nvim('command', "let vim = rpcstart('"..nvim_prog.."', ['-u', 'NONE', '-i', 'NONE', '--embed'])") | ||||
|       nvim('command', "let vim = rpcstart('"..nvim_prog.."', ['-u', 'NONE', '-i', 'NONE', '--cmd', 'set noswapfile', '--embed'])") | ||||
|       neq(0, eval('vim')) | ||||
|     end) | ||||
|  | ||||
|   | ||||
| @@ -29,9 +29,11 @@ describe(':preserve', function() | ||||
|  | ||||
|   it("saves to custom 'directory' and (R)ecovers (issue #1836)", function() | ||||
|     local testfile = 'testfile_recover_spec' | ||||
|     -- Note: `set swapfile` *must* go after `set directory`: otherwise it may  | ||||
|     -- attempt to create a swapfile in different directory. | ||||
|     local init = [[ | ||||
|       set swapfile fileformat=unix undolevels=-1 | ||||
|       set directory^=]]..swapdir..[[// | ||||
|       set swapfile fileformat=unix undolevels=-1 | ||||
|     ]] | ||||
|  | ||||
|     source(init) | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 ZyX
					ZyX