From 39c628d031b89e9048340f6c95b9c3a97c2a0089 Mon Sep 17 00:00:00 2001 From: Rui Abreu Ferreira Date: Mon, 15 Aug 2016 16:42:12 -0700 Subject: Mark some functional tests as pending in Windows --- test/functional/api/server_requests_spec.lua | 1 + 1 file changed, 1 insertion(+) (limited to 'test/functional/api') diff --git a/test/functional/api/server_requests_spec.lua b/test/functional/api/server_requests_spec.lua index b76c3b9cd6..6fe87a358c 100644 --- a/test/functional/api/server_requests_spec.lua +++ b/test/functional/api/server_requests_spec.lua @@ -8,6 +8,7 @@ local nvim_prog, command, funcs = helpers.nvim_prog, helpers.command, helpers.fu local source, next_message = helpers.source, helpers.next_message local meths = helpers.meths +if helpers.pending_win32(pending) then return end describe('server -> client', function() local cid -- cgit From 9ce81f7b2b90846063f6bd4a5ce8efc61e437983 Mon Sep 17 00:00:00 2001 From: Rui Abreu Ferreira Date: Tue, 29 Dec 2015 19:18:16 +0000 Subject: functionaltest: Create lua helper for os.tmpname() In Windows Lua's os.tmpname() returns relative paths starting with \s, prepend them with $TEMP to generate a valid path. In OS X os.tmpname() returns paths in '/tmp' but they should be in '/private/tmp'. We cannot use os_name() for platform detection because some tests use tempname() before nvim is spawned, instead use one of the following: 1. Set SYSTEM_NAME environment variable before calling the tests, it is set from CMAKE_SYSTEM_NAME(i.e. uname -s or 'Windows') 2. Call uname -s 3. Assume windows --- test/functional/api/vim_spec.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'test/functional/api') diff --git a/test/functional/api/vim_spec.lua b/test/functional/api/vim_spec.lua index eb2b06edcb..848935fc0f 100644 --- a/test/functional/api/vim_spec.lua +++ b/test/functional/api/vim_spec.lua @@ -13,7 +13,7 @@ describe('vim_* functions', function() describe('command', function() it('works', function() - local fname = os.tmpname() + local fname = helpers.tmpname() nvim('command', 'new') nvim('command', 'edit '..fname) nvim('command', 'normal itesting\napi') -- cgit