aboutsummaryrefslogtreecommitdiff
path: root/test/functional/eval/executable_spec.lua
diff options
context:
space:
mode:
Diffstat (limited to 'test/functional/eval/executable_spec.lua')
-rw-r--r--test/functional/eval/executable_spec.lua4
1 files changed, 4 insertions, 0 deletions
diff --git a/test/functional/eval/executable_spec.lua b/test/functional/eval/executable_spec.lua
index f8e579a8ff..28aefb72e5 100644
--- a/test/functional/eval/executable_spec.lua
+++ b/test/functional/eval/executable_spec.lua
@@ -11,6 +11,10 @@ describe('executable()', function()
it('returns 1 for commands in $PATH', function()
local exe = iswin() and 'ping' or 'ls'
eq(1, call('executable', exe))
+ command('let $PATH = fnamemodify("./test/functional/fixtures/bin", ":p")')
+ eq(1, call('executable', 'null'))
+ eq(1, call('executable', 'true'))
+ eq(1, call('executable', 'false'))
end)
it('fails for invalid values', function()