Mercurial > vim
comparison src/testdir/test_swap.vim @ 15645:f315ab10d579 v8.1.0830
patch 8.1.0830: test leaves directory behind on MS-Windows
commit https://github.com/vim/vim/commit/e3d065454408a103c39308651dd7793f0bf55ba6
Author: Bram Moolenaar <Bram@vim.org>
Date: Sun Jan 27 14:29:24 2019 +0100
patch 8.1.0830: test leaves directory behind on MS-Windows
Problem: Test leaves directory behind on MS-Windows.
Solution: Close buffer before deleting directory.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sun, 27 Jan 2019 14:30:05 +0100 |
parents | 20653d6f3d95 |
children | 4e9bea9b8025 |
comparison
equal
deleted
inserted
replaced
15644:fb81e4e5a38b | 15645:f315ab10d579 |
---|---|
96 edit foo/x.txt | 96 edit foo/x.txt |
97 " This should not give a warning for an existing swap file. | 97 " This should not give a warning for an existing swap file. |
98 split bar/x.txt | 98 split bar/x.txt |
99 only | 99 only |
100 | 100 |
101 " Delete the buffer so that swap file is removed before we try to delete the | |
102 " directory. That fails on MS-Windows. | |
103 %bdelete! | |
101 set directory& | 104 set directory& |
102 call delete('Xswapdir', 'rf') | 105 call delete('Xswapdir', 'rf') |
103 endfunc | 106 endfunc |
104 | 107 |
105 func Test_swapinfo() | 108 func Test_swapinfo() |