diff options
author | Justin M. Keyes <justinkz@gmail.com> | 2016-05-15 16:56:29 -0400 |
---|---|---|
committer | Justin M. Keyes <justinkz@gmail.com> | 2016-05-15 17:02:14 -0400 |
commit | 36fb600a9e98b1f41f53783977bbd7b96c254a1b (patch) | |
tree | b0470ce2a4e90f8f28418029054623d367c1f732 /test/functional/terminal/ex_terminal_spec.lua | |
parent | 3320b998165e82c5c2fa50ac82e8ae577215ab24 (diff) | |
download | rneovim-36fb600a9e98b1f41f53783977bbd7b96c254a1b.tar.gz rneovim-36fb600a9e98b1f41f53783977bbd7b96c254a1b.tar.bz2 rneovim-36fb600a9e98b1f41f53783977bbd7b96c254a1b.zip |
ex_terminal(): fix double-free
Closes #4554
Diffstat (limited to 'test/functional/terminal/ex_terminal_spec.lua')
-rw-r--r-- | test/functional/terminal/ex_terminal_spec.lua | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/test/functional/terminal/ex_terminal_spec.lua b/test/functional/terminal/ex_terminal_spec.lua index 7f9736e5b0..a3937ca4ba 100644 --- a/test/functional/terminal/ex_terminal_spec.lua +++ b/test/functional/terminal/ex_terminal_spec.lua @@ -1,8 +1,8 @@ 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 = helpers.nvim_dir, helpers.source -local execute = helpers.execute +local nvim_dir, source, ok = helpers.nvim_dir, helpers.source, helpers.ok +local execute, eval = helpers.execute, helpers.eval describe(':terminal', function() local screen @@ -53,5 +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')) end) end) |