From 0b4c53fc23581abb14b6d4c567dc08720f509020 Mon Sep 17 00:00:00 2001 From: Jan Edmund Lazo Date: Sat, 8 Jun 2019 18:12:28 -0400 Subject: vim-patch:8.0.1305: writefile() never calls fsync() #10153 Problem: Writefile() never calls fsync(). Solution: Follow the 'fsync' option with override to enable or disable. https://github.com/vim/vim/commit/7567d0b115e332f61a9f390aaccdf7825b891227 --- src/nvim/testdir/test_writefile.vim | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/nvim/testdir') diff --git a/src/nvim/testdir/test_writefile.vim b/src/nvim/testdir/test_writefile.vim index 9c9e051bc9..9da9df2150 100644 --- a/src/nvim/testdir/test_writefile.vim +++ b/src/nvim/testdir/test_writefile.vim @@ -167,3 +167,10 @@ func Test_writefile_sync_dev_stdout() throw 'Skipped: /dev/stdout is not writable' endif endfunc + +func Test_writefile_sync_arg() + " This doesn't check if fsync() works, only that the argument is accepted. + call writefile(['one'], 'Xtest', 's') + call writefile(['two'], 'Xtest', 'S') + call delete('Xtest') +endfunc -- cgit