Mercurial > vim
comparison src/eval.c @ 11181:13544aa85dc0 v8.0.0477
patch 8.0.0477: the client-server test may hang when failing
commit https://github.com/vim/vim/commit/42205551b140bee8b419b24abe210f56bb80b35e
Author: Bram Moolenaar <Bram@vim.org>
Date: Sat Mar 18 19:42:22 2017 +0100
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()
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Sat, 18 Mar 2017 19:45:05 +0100 |
parents | 404e98047f0b |
children | 327a04a762f6 |
comparison
equal
deleted
inserted
replaced
11180:4152d770f04e | 11181:13544aa85dc0 |
---|---|
9082 ga_clear(&ga); | 9082 ga_clear(&ga); |
9083 } | 9083 } |
9084 } | 9084 } |
9085 | 9085 |
9086 void | 9086 void |
9087 assert_report(typval_T *argvars) | |
9088 { | |
9089 garray_T ga; | |
9090 | |
9091 prepare_assert_error(&ga); | |
9092 ga_concat(&ga, get_tv_string(&argvars[0])); | |
9093 assert_error(&ga); | |
9094 ga_clear(&ga); | |
9095 } | |
9096 | |
9097 void | |
9087 assert_exception(typval_T *argvars) | 9098 assert_exception(typval_T *argvars) |
9088 { | 9099 { |
9089 garray_T ga; | 9100 garray_T ga; |
9090 char_u *error = get_tv_string_chk(&argvars[0]); | 9101 char_u *error = get_tv_string_chk(&argvars[0]); |
9091 | 9102 |