comparison runtime/doc/eval.txt @ 11006:b3601a8eb679 v8.0.0392

patch 8.0.0392: GUI test fails with Athena and Motif commit https://github.com/vim/vim/commit/e0c31f6a304496b597a51ce98af419ec815bec74 Author: Bram Moolenaar <Bram@vim.org> Date: Wed Mar 1 15:07:05 2017 +0100 patch 8.0.0392: GUI test fails with Athena and Motif Problem: GUI test fails with Athena and Motif. Solution: Add test_ignore_error(). Use it to ignore the "failed to create input context" error.
author Christian Brabandt <cb@256bit.org>
date Wed, 01 Mar 2017 15:15:05 +0100
parents 6b6abffbdf59
children fb2bcfa6a8de
comparison
equal deleted inserted replaced
11005:5bc16b2b8c46 11006:b3601a8eb679
2356 test_alloc_fail({id}, {countdown}, {repeat}) 2356 test_alloc_fail({id}, {countdown}, {repeat})
2357 none make memory allocation fail 2357 none make memory allocation fail
2358 test_autochdir() none enable 'autochdir' during startup 2358 test_autochdir() none enable 'autochdir' during startup
2359 test_disable_char_avail({expr}) none test without typeahead 2359 test_disable_char_avail({expr}) none test without typeahead
2360 test_garbagecollect_now() none free memory right now for testing 2360 test_garbagecollect_now() none free memory right now for testing
2361 test_ignore_error({expr}) none ignore a specific error
2361 test_null_channel() Channel null value for testing 2362 test_null_channel() Channel null value for testing
2362 test_null_dict() Dict null value for testing 2363 test_null_dict() Dict null value for testing
2363 test_null_job() Job null value for testing 2364 test_null_job() Job null value for testing
2364 test_null_list() List null value for testing 2365 test_null_list() List null value for testing
2365 test_null_partial() Funcref null value for testing 2366 test_null_partial() Funcref null value for testing
7781 test_garbagecollect_now() *test_garbagecollect_now()* 7782 test_garbagecollect_now() *test_garbagecollect_now()*
7782 Like garbagecollect(), but executed right away. This must 7783 Like garbagecollect(), but executed right away. This must
7783 only be called directly to avoid any structure to exist 7784 only be called directly to avoid any structure to exist
7784 internally, and |v:testing| must have been set before calling 7785 internally, and |v:testing| must have been set before calling
7785 any function. 7786 any function.
7787
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.
7786 7796
7787 test_null_channel() *test_null_channel()* 7797 test_null_channel() *test_null_channel()*
7788 Return a Channel that is null. Only useful for testing. 7798 Return a Channel that is null. Only useful for testing.
7789 {only available when compiled with the +channel feature} 7799 {only available when compiled with the +channel feature}
7790 7800