]> git.ipfire.org Git - thirdparty/vim.git/commit
patch 9.1.0269: Test for TextChanged is still flaky with ASAN v9.1.0269
authorzeertzjq <zeertzjq@outlook.com>
Fri, 5 Apr 2024 18:07:39 +0000 (20:07 +0200)
committerChristian Brabandt <cb@256bit.org>
Fri, 5 Apr 2024 18:07:39 +0000 (20:07 +0200)
commite9ff79a7c9affea970f50de2aa65f62080b55323
treec0436f978a0eb6e6429832d89af367cbc3893dfe
parent83cd2c7bf0c12f05d747dd5fd6abfe103948bf12
patch 9.1.0269: Test for TextChanged is still flaky with ASAN

Problem:  Test for TextChanged is still flaky with ASAN.
Solution: Don't index the result of readfile().
          (zeertzjq)

It turns out that with ASAN the file may become empty during a write
even if it's non-empty both before and after the write, in which case
indexing the result of readfile() will error, so use join() instead.

Also don't delete the file halfway the test, just in case it may cause
errors on the next read.

closes: #14421

Signed-off-by: zeertzjq <zeertzjq@outlook.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
src/testdir/test_autocmd.vim
src/version.c