aboutsummaryrefslogtreecommitdiff
path: root/test/functional/eval/exepath_spec.lua
diff options
context:
space:
mode:
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)