summaryrefslogtreecommitdiff
path: root/src/eval.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2017-03-18 19:42:22 +0100
committerBram Moolenaar <Bram@vim.org>2017-03-18 19:42:22 +0100
commit42205551b140bee8b419b24abe210f56bb80b35e (patch)
treeeb4b9fe95bd66ccb9c65e01a3bbc70a3cc026eed /src/eval.c
parent7a43cb9cb5909634469b0a3e865747f10ea38e9b (diff)
downloadvim-git-42205551b140bee8b419b24abe210f56bb80b35e.tar.gz
patch 8.0.0477: the client-server test may hang when failingv8.0.0477
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.c11
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;