aboutsummaryrefslogtreecommitdiff
path: root/test/functional/lua/json_spec.lua
diff options
context:
space:
mode:
authorJustin M. Keyes <justinkz@gmail.com>2023-12-06 07:11:36 -0800
committerGitHub <noreply@github.com>2023-12-06 07:11:36 -0800
commitc84af395e88ba143c19f7e34674bd222622e08ee (patch)
tree6a025727a2552854fe893e782ae8bc2adb5a81bd /test/functional/lua/json_spec.lua
parentf64e4b43e1191ff30d902730f752875aa55682ce (diff)
downloadrneovim-c84af395e88ba143c19f7e34674bd222622e08ee.tar.gz
rneovim-c84af395e88ba143c19f7e34674bd222622e08ee.tar.bz2
rneovim-c84af395e88ba143c19f7e34674bd222622e08ee.zip
test: 'nofsync' with deadly signal #26415
Problem: The test for 'nofsync' swapfile preservation on a deadly signal, does not actually assert anything. followup to 1fd29a28841dee3d25ff079eb24fc160eb02cb3c Solution: Check that swapfile contents are present after getting SIGTERM. TODO: this doesn't really verify that 'fsync' was called; it still passes with this patch: diff --git a/src/nvim/main.c b/src/nvim/main.c index 216e39f3e81c..7a635520401d 100644 --- a/src/nvim/main.c +++ b/src/nvim/main.c @@ -838,7 +838,7 @@ void preserve_exit(const char *errmsg) if (errmsg != NULL) { os_errmsg("Vim: preserving files...\r\n"); } - ml_sync_all(false, false, true); // preserve all swap files + ml_sync_all(false, false, false); // preserve all swap files break; } } However it correctly fails with this patch, at least: diff --git a/src/nvim/main.c b/src/nvim/main.c index 216e39f3e81c..f2306c310ddc 100644 --- a/src/nvim/main.c +++ b/src/nvim/main.c @@ -838,7 +838,6 @@ void preserve_exit(const char *errmsg) if (errmsg != NULL) { os_errmsg("Vim: preserving files...\r\n"); } - ml_sync_all(false, false, true); // preserve all swap files break; } }
Diffstat (limited to 'test/functional/lua/json_spec.lua')
0 files changed, 0 insertions, 0 deletions