diff options
author | Bram Moolenaar <Bram@vim.org> | 2022-06-30 22:13:59 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2022-06-30 22:13:59 +0100 |
commit | fa4873ccfc10e0f278dc46f39d00136fab059b19 (patch) | |
tree | 55d4275e939188fc973d53bcf19e3d6136e6efe6 /runtime | |
parent | cdbfc6dbab1d63aa56af316d6b13e37939e7f7a8 (diff) | |
download | vim-git-fa4873ccfc10e0f278dc46f39d00136fab059b19.tar.gz |
patch 9.0.0013: reproducing memory access errors can be difficultv9.0.0013
Problem: Reproducing memory access errors can be difficult.
Solution: When testing, copy each line to allocated memory, so that valgrind
can detect accessing memory before and/or after it. Fix uncovered
problems.
Diffstat (limited to 'runtime')
-rw-r--r-- | runtime/doc/testing.txt | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/runtime/doc/testing.txt b/runtime/doc/testing.txt index 1252ce308..6998a6edc 100644 --- a/runtime/doc/testing.txt +++ b/runtime/doc/testing.txt @@ -268,6 +268,9 @@ test_override({name}, {val}) *test_override()* Current supported values for {name} are: {name} effect when {val} is non-zero ~ + alloc_lines make a copy of every buffer line into allocated + memory, so that memory access errors can be found + by valgrind autoload `import autoload` will load the script right away, not postponed until an item is used char_avail disable the char_avail() function @@ -287,7 +290,8 @@ test_override({name}, {val}) *test_override()* uptime overrules sysinfo.uptime vterm_title setting the window title by a job running in a terminal window - ALL clear all overrides ({val} is not used) + ALL clear all overrides, except alloc_lines ({val} is + not used) "starting" is to be used when a test should behave like startup was done. Since the tests are run by sourcing a |