aboutsummaryrefslogtreecommitdiff
path: root/test/functional/eval/executable_spec.lua
diff options
context:
space:
mode:
authorJan Edmund Lazo <jan.lazo@mail.utoronto.ca>2020-12-11 22:59:43 -0500
committerJan Edmund Lazo <jan.lazo@mail.utoronto.ca>2020-12-11 22:59:43 -0500
commitda58242fb8e432415778e3eeab96a9d63edfdf06 (patch)
tree5d4f1683e7678c1ba339992438def2a16e59adb9 /test/functional/eval/executable_spec.lua
parent5ccc79e880d5913f092e041f1a67530c1d2d6728 (diff)
downloadrneovim-da58242fb8e432415778e3eeab96a9d63edfdf06.tar.gz
rneovim-da58242fb8e432415778e3eeab96a9d63edfdf06.tar.bz2
rneovim-da58242fb8e432415778e3eeab96a9d63edfdf06.zip
test/functional/eval: assert that executable() fixtures are executable
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()