Mercurial > vim
comparison src/testdir/test_writefile.vim @ 12857:ffdf2e4b5d9a v8.0.1305
patch 8.0.1305: writefile() never calls fsync()
commit https://github.com/vim/vim/commit/7567d0b115e332f61a9f390aaccdf7825b891227
Author: Bram Moolenaar <Bram@vim.org>
Date: Thu Nov 16 23:04:15 2017 +0100
patch 8.0.1305: writefile() never calls fsync()
Problem: Writefile() never calls fsync().
Solution: Follow the 'fsync' option with override to enable or disable.
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Thu, 16 Nov 2017 23:15:05 +0100 |
parents | ae2802b6bf7d |
children | 98503d690368 |
comparison
equal
deleted
inserted
replaced
12856:4c4a02a946f0 | 12857:ffdf2e4b5d9a |
---|---|
91 call assert_equal(1, g:flag) | 91 call assert_equal(1, g:flag) |
92 unlet g:flag | 92 unlet g:flag |
93 endif | 93 endif |
94 bwipe Xfile | 94 bwipe Xfile |
95 endfunc | 95 endfunc |
96 | |
97 func Test_writefile_sync_arg() | |
98 " This doesn't check if fsync() works, only that the argument is accepted. | |
99 call writefile(['one'], 'Xtest', 's') | |
100 call writefile(['two'], 'Xtest', 'S') | |
101 call delete('Xtest') | |
102 endfunc |