diff options
author | Bram Moolenaar <Bram@vim.org> | 2017-03-01 15:07:05 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2017-03-01 15:07:05 +0100 |
commit | e0c31f6a304496b597a51ce98af419ec815bec74 (patch) | |
tree | 9e40b37c819bfc5a3c8f7fb41c25657a88b89ff2 /runtime | |
parent | 5f53dd3f747711be90879fa2f22a207970b86750 (diff) |
patch 8.0.0392: GUI test fails with Athena and Motifv8.0.0392
Problem: GUI test fails with Athena and Motif.
Solution: Add test_ignore_error(). Use it to ignore the "failed to create
input context" error.
Diffstat (limited to 'runtime')
-rw-r--r-- | runtime/doc/eval.txt | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/runtime/doc/eval.txt b/runtime/doc/eval.txt index 30e71345a6..f2ec3063dd 100644 --- a/runtime/doc/eval.txt +++ b/runtime/doc/eval.txt @@ -2358,6 +2358,7 @@ test_alloc_fail({id}, {countdown}, {repeat}) test_autochdir() none enable 'autochdir' during startup test_disable_char_avail({expr}) none test without typeahead test_garbagecollect_now() none free memory right now for testing +test_ignore_error({expr}) none ignore a specific error test_null_channel() Channel null value for testing test_null_dict() Dict null value for testing test_null_job() Job null value for testing @@ -7784,6 +7785,15 @@ test_garbagecollect_now() *test_garbagecollect_now()* internally, and |v:testing| must have been set before calling any function. +test_ignore_error({expr}) *test_ignore_error()* + Ignore any error containing {expr}. A normal message is given + instead. + This is only meant to be used in tests, where catching the + error with try/catch cannot be used (because it skips over + following code). + {expr} is used literally, not as a pattern. + There is currently no way to revert this. + test_null_channel() *test_null_channel()* Return a Channel that is null. Only useful for testing. {only available when compiled with the +channel feature} |