blob: 50aa41286716921d082d9af5e58c3922f2a4a702 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
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)
|