aboutsummaryrefslogtreecommitdiff
path: root/test/functional/terminal/ex_terminal_spec.lua
diff options
context:
space:
mode:
authorJustin M. Keyes <justinkz@gmail.com>2016-05-14 22:56:11 -0400
committerJustin M. Keyes <justinkz@gmail.com>2016-05-15 19:47:24 -0400
commit8dd91ddb73ba31e451e76b72861fea90fede1de3 (patch)
treedd837dd3f0993a273cc8b9264348a3ef060d63e2 /test/functional/terminal/ex_terminal_spec.lua
parentdf376d2e49ba3b73baa447afee16374eb9cad623 (diff)
downloadrneovim-8dd91ddb73ba31e451e76b72861fea90fede1de3.tar.gz
rneovim-8dd91ddb73ba31e451e76b72861fea90fede1de3.tar.bz2
rneovim-8dd91ddb73ba31e451e76b72861fea90fede1de3.zip
test: term_close use-after-free
References #4393
Diffstat (limited to 'test/functional/terminal/ex_terminal_spec.lua')
-rw-r--r--test/functional/terminal/ex_terminal_spec.lua6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/functional/terminal/ex_terminal_spec.lua b/test/functional/terminal/ex_terminal_spec.lua
index a3937ca4ba..d89092ff27 100644
--- a/test/functional/terminal/ex_terminal_spec.lua
+++ b/test/functional/terminal/ex_terminal_spec.lua
@@ -1,7 +1,7 @@
local helpers = require('test.functional.helpers')
local Screen = require('test.functional.ui.screen')
local clear, wait, nvim = helpers.clear, helpers.wait, helpers.nvim
-local nvim_dir, source, ok = helpers.nvim_dir, helpers.source, helpers.ok
+local nvim_dir, source, eq = helpers.nvim_dir, helpers.source, helpers.eq
local execute, eval = helpers.execute, helpers.eval
describe(':terminal', function()
@@ -53,7 +53,7 @@ describe(':terminal', function()
source([[
autocmd BufNew * set shell=foo
terminal]])
- -- Verify that BufNew actually fired (else the test is useless).
- ok('foo' == eval('&shell'))
+ -- Verify that BufNew actually fired (else the test is invalid).
+ eq('foo', eval('&shell'))
end)
end)