Mercurial > vim
comparison src/evalfunc.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 | 76fb679a310e |
children | 71311d899b42 |
comparison
equal
deleted
inserted
replaced
11180:4152d770f04e | 11181:13544aa85dc0 |
---|---|
50 static void f_assert_false(typval_T *argvars, typval_T *rettv); | 50 static void f_assert_false(typval_T *argvars, typval_T *rettv); |
51 static void f_assert_inrange(typval_T *argvars, typval_T *rettv); | 51 static void f_assert_inrange(typval_T *argvars, typval_T *rettv); |
52 static void f_assert_match(typval_T *argvars, typval_T *rettv); | 52 static void f_assert_match(typval_T *argvars, typval_T *rettv); |
53 static void f_assert_notequal(typval_T *argvars, typval_T *rettv); | 53 static void f_assert_notequal(typval_T *argvars, typval_T *rettv); |
54 static void f_assert_notmatch(typval_T *argvars, typval_T *rettv); | 54 static void f_assert_notmatch(typval_T *argvars, typval_T *rettv); |
55 static void f_assert_report(typval_T *argvars, typval_T *rettv); | |
55 static void f_assert_true(typval_T *argvars, typval_T *rettv); | 56 static void f_assert_true(typval_T *argvars, typval_T *rettv); |
56 #ifdef FEAT_FLOAT | 57 #ifdef FEAT_FLOAT |
57 static void f_asin(typval_T *argvars, typval_T *rettv); | 58 static void f_asin(typval_T *argvars, typval_T *rettv); |
58 static void f_atan(typval_T *argvars, typval_T *rettv); | 59 static void f_atan(typval_T *argvars, typval_T *rettv); |
59 static void f_atan2(typval_T *argvars, typval_T *rettv); | 60 static void f_atan2(typval_T *argvars, typval_T *rettv); |
481 {"assert_false", 1, 2, f_assert_false}, | 482 {"assert_false", 1, 2, f_assert_false}, |
482 {"assert_inrange", 3, 4, f_assert_inrange}, | 483 {"assert_inrange", 3, 4, f_assert_inrange}, |
483 {"assert_match", 2, 3, f_assert_match}, | 484 {"assert_match", 2, 3, f_assert_match}, |
484 {"assert_notequal", 2, 3, f_assert_notequal}, | 485 {"assert_notequal", 2, 3, f_assert_notequal}, |
485 {"assert_notmatch", 2, 3, f_assert_notmatch}, | 486 {"assert_notmatch", 2, 3, f_assert_notmatch}, |
487 {"assert_report", 1, 1, f_assert_report}, | |
486 {"assert_true", 1, 2, f_assert_true}, | 488 {"assert_true", 1, 2, f_assert_true}, |
487 #ifdef FEAT_FLOAT | 489 #ifdef FEAT_FLOAT |
488 {"atan", 1, 1, f_atan}, | 490 {"atan", 1, 1, f_atan}, |
489 {"atan2", 2, 2, f_atan2}, | 491 {"atan2", 2, 2, f_atan2}, |
490 #endif | 492 #endif |
1312 { | 1314 { |
1313 assert_match_common(argvars, ASSERT_NOTMATCH); | 1315 assert_match_common(argvars, ASSERT_NOTMATCH); |
1314 } | 1316 } |
1315 | 1317 |
1316 /* | 1318 /* |
1319 * "assert_report(msg)" function | |
1320 */ | |
1321 static void | |
1322 f_assert_report(typval_T *argvars, typval_T *rettv UNUSED) | |
1323 { | |
1324 assert_report(argvars); | |
1325 } | |
1326 | |
1327 /* | |
1317 * "assert_true(actual[, msg])" function | 1328 * "assert_true(actual[, msg])" function |
1318 */ | 1329 */ |
1319 static void | 1330 static void |
1320 f_assert_true(typval_T *argvars, typval_T *rettv UNUSED) | 1331 f_assert_true(typval_T *argvars, typval_T *rettv UNUSED) |
1321 { | 1332 { |