aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorThiago de Arruda <tpadilha84@gmail.com>2015-09-16 02:48:10 -0300
committerThiago de Arruda <tpadilha84@gmail.com>2015-09-16 02:52:55 -0300
commit22ea2900d0eeca0f3cdc4ee5dbfce66966d1a661 (patch)
tree8cb320d319884621dce679b3ec8087f2d00db9db /test
parent5613b62224e4cf8a0088537c7f4ea883530e3cf8 (diff)
downloadrneovim-22ea2900d0eeca0f3cdc4ee5dbfce66966d1a661.tar.gz
rneovim-22ea2900d0eeca0f3cdc4ee5dbfce66966d1a661.tar.bz2
rneovim-22ea2900d0eeca0f3cdc4ee5dbfce66966d1a661.zip
loop: Free the parent queue last when destroying the loop
This avoids a heap-use-after-free ASAN error. Close #3334
Diffstat (limited to 'test')
-rw-r--r--test/functional/ex_cmds/quit_spec.lua14
1 files changed, 14 insertions, 0 deletions
diff --git a/test/functional/ex_cmds/quit_spec.lua b/test/functional/ex_cmds/quit_spec.lua
new file mode 100644
index 0000000000..3cd8e19617
--- /dev/null
+++ b/test/functional/ex_cmds/quit_spec.lua
@@ -0,0 +1,14 @@
+local helpers = require('test.functional.helpers')
+local execute, eq, clear = helpers.execute, helpers.eq, helpers.clear
+
+describe(':qa', function()
+ before_each(function()
+ clear('qa')
+ end)
+
+ it('verify #3334', function()
+ -- just testing if 'qa' passed as a program argument wont result in memory
+ -- errors
+ end)
+end)
+