summaryrefslogtreecommitdiff
path: root/src/testing.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2022-01-13 22:05:09 +0000
committerBram Moolenaar <Bram@vim.org>2022-01-13 22:05:09 +0000
commit3e4fa3d7d37162cd08fc0c6e83f52fd323f63eba (patch)
tree69a8b9b5f02e2424d86a2671e53df5b07175413b /src/testing.c
parentd9d2fd0aa33dd9f7460d6f1e403505a60f7ce2fc (diff)
downloadvim-git-3e4fa3d7d37162cd08fc0c6e83f52fd323f63eba.tar.gz
patch 8.2.4087: cannot test items from an autoload script easilyv8.2.4087
Problem: Cannot test items from an autoload script easily. Solution: Add the "autoload" value for test_override().
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 eef5e0d76..34826826f 100644
--- a/src/testing.c
+++ b/src/testing.c
@@ -1055,6 +1055,8 @@ f_test_override(typval_T *argvars, typval_T *rettv UNUSED)
reset_term_props_on_termresponse = val;
else if (STRCMP(name, (char_u *)"uptime") == 0)
override_sysinfo_uptime = val;
+ else if (STRCMP(name, (char_u *)"autoload") == 0)
+ override_autoload = val;
else if (STRCMP(name, (char_u *)"ALL") == 0)
{
disable_char_avail_for_testing = FALSE;