aboutsummaryrefslogtreecommitdiff
path: root/test/functional/core/fileio_spec.lua
diff options
context:
space:
mode:
authorPloum <1233155+ploum@users.noreply.github.com>2023-11-14 11:56:50 +0100
committerGitHub <noreply@github.com>2023-11-14 02:56:50 -0800
commit5b45efbee6ebb64269469b636baac5248e83421f (patch)
tree5af8d80b27ae4003b8d58a2f44b5b3e7b4c49f48 /test/functional/core/fileio_spec.lua
parent582d7f47905d82f315dc852a9d2937cd5b655e55 (diff)
downloadrneovim-5b45efbee6ebb64269469b636baac5248e83421f.tar.gz
rneovim-5b45efbee6ebb64269469b636baac5248e83421f.tar.bz2
rneovim-5b45efbee6ebb64269469b636baac5248e83421f.zip
fix(defaults): set 'fsync' #26034
Problem: 'nofsync' may lose data if the system has a hard shutdown. #9888 Solution: Change default to 'fsync'. This may be revisited in the future when 'nofsync' can be made safer.
Diffstat (limited to 'test/functional/core/fileio_spec.lua')
-rw-r--r--test/functional/core/fileio_spec.lua1
1 files changed, 1 insertions, 0 deletions
diff --git a/test/functional/core/fileio_spec.lua b/test/functional/core/fileio_spec.lua
index a23dad226a..65f947132e 100644
--- a/test/functional/core/fileio_spec.lua
+++ b/test/functional/core/fileio_spec.lua
@@ -51,6 +51,7 @@ describe('fileio', function()
it('fsync() codepaths #8304', function()
clear({ args={ '-i', 'Xtest_startup_shada',
+ '--cmd', 'set nofsync',
'--cmd', 'set directory=Xtest_startup_swapdir' } })
-- These cases ALWAYS force fsync (regardless of 'fsync' option):