summaryrefslogtreecommitdiffstats
path: root/src/testing.c
diff options
context:
space:
mode:
authorYegappan Lakshmanan <yegappan@yahoo.com>2024-05-03 18:24:07 +0200
committerChristian Brabandt <cb@256bit.org>2024-05-03 18:27:51 +0200
commit5715a726282018e708cff7dd930c9f8f7c37fa7e (patch)
treef6c0049084d51445a5d1bd00d47447981707b16f /src/testing.c
parentc8330b8fff8e44c450a606ba91c1fec5f41478f7 (diff)
patch 9.1.0391: Vim9: could improve testingv9.1.0391
Problem: Vim9: could improve testing (Ernie Rael) Solution: Support defcompile for test_override() to improve testing (Yegappan Lakshmanan) fixes: #14553 closes: #14712 Signed-off-by: Yegappan Lakshmanan <yegappan@yahoo.com> Signed-off-by: Christian Brabandt <cb@256bit.org>
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 33de3a5cd8..3e9e07704b 100644
--- a/src/testing.c
+++ b/src/testing.c
@@ -1051,6 +1051,8 @@ f_test_override(typval_T *argvars, typval_T *rettv UNUSED)
ml_get_alloc_lines = val;
else if (STRCMP(name, (char_u *)"autoload") == 0)
override_autoload = val;
+ else if (STRCMP(name, (char_u *)"defcompile") == 0)
+ override_defcompile = val;
else if (STRCMP(name, (char_u *)"ALL") == 0)
{
disable_char_avail_for_testing = FALSE;