aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJustin M. Keyes <justinkz@gmail.com>2024-10-02 16:36:50 +0200
committerJustin M. Keyes <justinkz@gmail.com>2024-10-02 16:41:01 +0200
commitbbf208784ca279178ba0075b60d3e9c80f11da7a (patch)
treea2ba739b5d7588ca36516421188fac5c7850d246
parent9e23b4e1852f9ad6418b45f827d1fb160611d8cf (diff)
downloadrneovim-bbf208784ca279178ba0075b60d3e9c80f11da7a.tar.gz
rneovim-bbf208784ca279178ba0075b60d3e9c80f11da7a.tar.bz2
rneovim-bbf208784ca279178ba0075b60d3e9c80f11da7a.zip
tests: skip watch.watchdirs test on macos 14 CI
Problem: Strange failure only in macos 14 CI FAILED test/functional/lua/watch_spec.lua @ 82: vim._watch watchdirs() detects file changes test/functional/lua/watch_spec.lua:149: Expected objects to be the same. Passed in: (table: 0x0116023758) { *[1] = { [change_type] = 3 *[path] = '/Users/runner/work/neovim/neovim/build/Xtest_tmpdir/nvim_KFMvPbXk9a/nvim_KFMvPbXk9a' } [2] = { [change_type] = 3 [path] = '/Users/runner/work/neovim/neovim/build/Xtest_tmpdir/nvim_KFMvPbXk9a/file' } } Expected: (table: 0x010d9d6548) { *[1] = { [change_type] = 1 *[path] = '/Users/runner/work/neovim/neovim/build/Xtest_tmpdir/nvim_KFMvPbXk9a/file' } [2] = { [change_type] = 3 [path] = '/Users/runner/work/neovim/neovim/build/Xtest_tmpdir/nvim_KFMvPbXk9a/file' } } stack traceback: test/functional/lua/watch_spec.lua:149: in function <test/functional/lua/watch_spec.lua:82> Solution: Skip test for that exact version.
-rw-r--r--test/functional/lua/watch_spec.lua3
1 files changed, 3 insertions, 0 deletions
diff --git a/test/functional/lua/watch_spec.lua b/test/functional/lua/watch_spec.lua
index a1e4a42ebe..0c575900d3 100644
--- a/test/functional/lua/watch_spec.lua
+++ b/test/functional/lua/watch_spec.lua
@@ -90,6 +90,9 @@ describe('vim._watch', function()
if watchfunc == 'watch' then
skip(is_os('mac'), 'flaky test on mac')
skip(is_os('bsd'), 'Stopped working on bsd after 3ca967387c49c754561c3b11a574797504d40f38')
+ elseif watchfunc == 'watchdirs' and is_os('mac') then
+ -- Bump this (or fix the bug) if CI continues to fail in future versions of macos CI.
+ skip(is_ci() and vim.uv.os_uname().release == '23.6.0', 'weird failure for macOS arm 14 CI')
else
skip(
is_os('bsd'),