summaryrefslogtreecommitdiff
path: root/src/testdir/test_unlet.vim
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2016-01-10 16:10:17 +0100
committerBram Moolenaar <Bram@vim.org>2016-01-10 16:10:17 +0100
commit254b105b755d9736ece5f7f28db92acaf3e7bf76 (patch)
tree110ad84ffb34e110f689790741b244ee77b6df28 /src/testdir/test_unlet.vim
parentf32c5cd6e0e6aa6d4aeacb6bf52e3d3ba21e5201 (diff)
downloadvim-git-254b105b755d9736ece5f7f28db92acaf3e7bf76.tar.gz
patch 7.4.1081v7.4.1081
Problem: No test for what previously caused a crash. Solution: Add test for unletting errmsg.
Diffstat (limited to 'src/testdir/test_unlet.vim')
-rw-r--r--src/testdir/test_unlet.vim6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/testdir/test_unlet.vim b/src/testdir/test_unlet.vim
index f6705997a..13ec66b10 100644
--- a/src/testdir/test_unlet.vim
+++ b/src/testdir/test_unlet.vim
@@ -7,6 +7,12 @@ func Test_read_only()
catch
call assert_true(v:exception =~ ':E795:')
endtry
+ try
+ " this caused a crash
+ unlet errmsg
+ catch
+ call assert_true(v:exception =~ ':E795:')
+ endtry
endfunc
func Test_existing()