]> git.ipfire.org Git - thirdparty/vim.git/commitdiff
patch 9.0.2008: test: undofile left behind v9.0.2008
authorDominique Pellé <dominique.pelle@tomtom.com>
Mon, 9 Oct 2023 16:07:24 +0000 (18:07 +0200)
committerChristian Brabandt <cb@256bit.org>
Mon, 9 Oct 2023 16:09:20 +0000 (18:09 +0200)
Problem:  test: undofile left behind
Solution: cleanup undofile

fix: tmp file not deleted when running make test_undo

Temporary file `.Xtestfile.txt.un~` was left running `make test_undo`
and vim was configured with:
```
./configure --with-features=normal --enable-gui=no --enable-terminal
```

closes: #13304

Signed-off-by: Christian Brabandt <cb@256bit.org>
Co-authored-by: Dominique Pellé <dominique.pelle@tomtom.com>
src/testdir/test_undo.vim
src/version.c

index 58563bde63472ecc43b0e8dbf6372d108ea19ecd..13c4990b8c26f931759b9b4ddc00b430baadab97 100644 (file)
@@ -860,6 +860,7 @@ func Test_undo_after_write()
 
   call StopVimInTerminal(buf)
   call delete('Xtestfile.txt')
+  call delete('.Xtestfile.txt.un~')
 endfunc
 
 func Test_undo_range_normal()
index 489ecb871e37dda045d771c53e8a8e7e1e2a1f81..56f317dd1492380bb19a76d9467a1f1f6ece66e9 100644 (file)
@@ -704,6 +704,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    2008,
 /**/
     2007,
 /**/