Skip to content

Commit b521a36

Browse files
committed
Merge remote-tracking branch 'vim/master'
2 parents 20d21e2 + 98e83b2 commit b521a36

File tree

15 files changed

+702
-416
lines changed

15 files changed

+702
-416
lines changed

runtime/doc/eval.txt

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2358,6 +2358,7 @@ test_alloc_fail({id}, {countdown}, {repeat})
23582358
test_autochdir() none enable 'autochdir' during startup
23592359
test_disable_char_avail({expr}) none test without typeahead
23602360
test_garbagecollect_now() none free memory right now for testing
2361+
test_ignore_error({expr}) none ignore a specific error
23612362
test_null_channel() Channel null value for testing
23622363
test_null_dict() Dict null value for testing
23632364
test_null_job() Job null value for testing
@@ -7784,6 +7785,15 @@ test_garbagecollect_now() *test_garbagecollect_now()*
77847785
internally, and |v:testing| must have been set before calling
77857786
any function.
77867787

7788+
test_ignore_error({expr}) *test_ignore_error()*
7789+
Ignore any error containing {expr}. A normal message is given
7790+
instead.
7791+
This is only meant to be used in tests, where catching the
7792+
error with try/catch cannot be used (because it skips over
7793+
following code).
7794+
{expr} is used literally, not as a pattern.
7795+
There is currently no way to revert this.
7796+
77877797
test_null_channel() *test_null_channel()*
77887798
Return a Channel that is null. Only useful for testing.
77897799
{only available when compiled with the +channel feature}

0 commit comments

Comments
 (0)