mirror of
https://github.com/neovim/neovim.git
synced 2025-10-10 11:56:30 +00:00
Revert "vim-patch:8.1.1378: delete() can not handle a file name that looks like a pattern (#12784)"
This reverts commit 4be0e92db0
.
Unfortunately, that commit stalled the Windows builds on GHA and likely requires
other patches to work properly.
This commit is contained in:
@@ -1402,10 +1402,6 @@ func Test_bufadd_bufload()
|
||||
endfunc
|
||||
|
||||
func Test_readdir()
|
||||
if isdirectory('Xdir')
|
||||
call delete('Xdir', 'rf')
|
||||
endif
|
||||
|
||||
call mkdir('Xdir')
|
||||
call writefile([], 'Xdir/foo.txt')
|
||||
call writefile([], 'Xdir/bar.txt')
|
||||
@@ -1460,19 +1456,4 @@ func Test_default_arg_value()
|
||||
call assert_equal('msg', HasDefault())
|
||||
endfunc
|
||||
|
||||
func Test_delete_rf()
|
||||
call mkdir('Xdir')
|
||||
call writefile([], 'Xdir/foo.txt')
|
||||
call writefile([], 'Xdir/bar.txt')
|
||||
call mkdir('Xdir/[a-1]') " issue #696
|
||||
call writefile([], 'Xdir/[a-1]/foo.txt')
|
||||
call writefile([], 'Xdir/[a-1]/bar.txt')
|
||||
call assert_true(filereadable('Xdir/foo.txt'))
|
||||
call assert_true(filereadable('Xdir/[a-1]/foo.txt'))
|
||||
|
||||
call assert_equal(0, delete('Xdir', 'rf'))
|
||||
call assert_false(filereadable('Xdir/foo.txt'))
|
||||
call assert_false(filereadable('Xdir/[a-1]/foo.txt'))
|
||||
endfunc
|
||||
|
||||
" vim: shiftwidth=2 sts=2 expandtab
|
||||
|
Reference in New Issue
Block a user