diff options
author | Bram Moolenaar <Bram@vim.org> | 2017-03-18 19:42:22 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2017-03-18 19:42:22 +0100 |
commit | 42205551b140bee8b419b24abe210f56bb80b35e (patch) | |
tree | eb4b9fe95bd66ccb9c65e01a3bbc70a3cc026eed /src/eval.c | |
parent | 7a43cb9cb5909634469b0a3e865747f10ea38e9b (diff) | |
download | vim-42205551b140bee8b419b24abe210f56bb80b35e.zip |
patch 8.0.0477: the client-server test may hang when failing
Problem: The client-server test may hang when failing.
Solution: Set a timer. Add assert_report()
Diffstat (limited to 'src/eval.c')
-rw-r--r-- | src/eval.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/eval.c b/src/eval.c index 56bb21f9b..e588c23e9 100644 --- a/src/eval.c +++ b/src/eval.c @@ -9084,6 +9084,17 @@ assert_bool(typval_T *argvars, int isTrue) } void +assert_report(typval_T *argvars) +{ + garray_T ga; + + prepare_assert_error(&ga); + ga_concat(&ga, get_tv_string(&argvars[0])); + assert_error(&ga); + ga_clear(&ga); +} + + void assert_exception(typval_T *argvars) { garray_T ga; |