aboutsummaryrefslogtreecommitdiff
path: root/test/functional/eval/exepath_spec.lua
diff options
context:
space:
mode:
authorerw7 <erw7.github@gmail.com>2019-01-18 14:11:40 +0900
committerJustin M. Keyes <justinkz@gmail.com>2019-04-01 03:13:11 +0200
commit3be5aa1a34f63f4e5e2b384098de2020a4c5b3bc (patch)
tree6bf3ccd551b99d5debb0478093465b511574aee6 /test/functional/eval/exepath_spec.lua
parent35c2ceba9695b2f246c11d4e457acda82bb9cb36 (diff)
downloadrneovim-3be5aa1a34f63f4e5e2b384098de2020a4c5b3bc.tar.gz
rneovim-3be5aa1a34f63f4e5e2b384098de2020a4c5b3bc.tar.bz2
rneovim-3be5aa1a34f63f4e5e2b384098de2020a4c5b3bc.zip
test/win: executable(), exepath() #9516
Diffstat (limited to 'test/functional/eval/exepath_spec.lua')
-rw-r--r--test/functional/eval/exepath_spec.lua14
1 files changed, 14 insertions, 0 deletions
diff --git a/test/functional/eval/exepath_spec.lua b/test/functional/eval/exepath_spec.lua
new file mode 100644
index 0000000000..50aa412867
--- /dev/null
+++ b/test/functional/eval/exepath_spec.lua
@@ -0,0 +1,14 @@
+local helpers = require('test.functional.helpers')(after_each)
+local eq, clear, call, iswin =
+ helpers.eq, helpers.clear, helpers.call, helpers.iswin
+
+describe('exepath() (Windows)', function()
+ if not iswin() then return end -- N/A for Unix.
+
+ it('append extension, even if omit extension', function()
+ local filename = 'cmd'
+ local pathext = '.exe'
+ clear({env={PATHEXT=pathext}})
+ eq(call('exepath', filename..pathext), call('exepath', filename))
+ end)
+end)