mirror of
https://github.com/vim/vim.git
synced 2025-09-23 03:43:49 -04:00
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()
This commit is contained in:
11
src/eval.c
11
src/eval.c
@@ -9083,6 +9083,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)
|
||||
{
|
||||
|
Reference in New Issue
Block a user