summaryrefslogtreecommitdiffstats
path: root/src/testing.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2023-05-14 21:38:12 +0100
committerBram Moolenaar <Bram@vim.org>2023-05-14 21:38:12 +0100
commit9d383f30bbd06552ad0bf343b2c03c6a0d1f6df2 (patch)
tree5eb419bd4d132300b01ffc01c10fd732aedcc2b5 /src/testing.c
parentcf2610c82b64b1785af0804916789295cae45e93 (diff)
patch 9.0.1557: test failures for unreachable codev9.0.1557
Problem: Test failures for unreachable code. Solution: Add a test override to ignore unreachable code.
Diffstat (limited to 'src/testing.c')
-rw-r--r--src/testing.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/testing.c b/src/testing.c
index dfa9c606a0..fd55927dfb 100644
--- a/src/testing.c
+++ b/src/testing.c
@@ -1039,6 +1039,8 @@ f_test_override(typval_T *argvars, typval_T *rettv UNUSED)
no_wait_return = val;
else if (STRCMP(name, (char_u *)"ui_delay") == 0)
ui_delay_for_testing = val;
+ else if (STRCMP(name, (char_u *)"unreachable") == 0)
+ ignore_unreachable_code_for_testing = val;
else if (STRCMP(name, (char_u *)"term_props") == 0)
reset_term_props_on_termresponse = val;
else if (STRCMP(name, (char_u *)"vterm_title") == 0)