Mercurial > vim
comparison src/testdir/test_unlet.vim @ 7562:f73876aa9a13 v7.4.1081
commit https://github.com/vim/vim/commit/254b105b755d9736ece5f7f28db92acaf3e7bf76
Author: Bram Moolenaar <Bram@vim.org>
Date: Sun Jan 10 16:10:17 2016 +0100
patch 7.4.1081
Problem: No test for what previously caused a crash.
Solution: Add test for unletting errmsg.
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Sun, 10 Jan 2016 16:15:05 +0100 |
parents | 3fcd3d235f7b |
children | 99e93f72ff91 |
comparison
equal
deleted
inserted
replaced
7561:eab993bb6a61 | 7562:f73876aa9a13 |
---|---|
2 | 2 |
3 func Test_read_only() | 3 func Test_read_only() |
4 try | 4 try |
5 " this caused a crash | 5 " this caused a crash |
6 unlet count | 6 unlet count |
7 catch | |
8 call assert_true(v:exception =~ ':E795:') | |
9 endtry | |
10 try | |
11 " this caused a crash | |
12 unlet errmsg | |
7 catch | 13 catch |
8 call assert_true(v:exception =~ ':E795:') | 14 call assert_true(v:exception =~ ':E795:') |
9 endtry | 15 endtry |
10 endfunc | 16 endfunc |
11 | 17 |