diff options
author | dundargoc <33953936+dundargoc@users.noreply.github.com> | 2022-11-13 14:52:19 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-11-13 05:52:19 -0800 |
commit | 736c36c02f316c979da363c5120495179a2b6c2a (patch) | |
tree | 97015d6701788a2c0b37b92c25033fff4f779ab9 /test/functional/core/fileio_spec.lua | |
parent | 0a96f18ed774ebc27db50eba4d8a4437e970a331 (diff) | |
download | rneovim-736c36c02f316c979da363c5120495179a2b6c2a.tar.gz rneovim-736c36c02f316c979da363c5120495179a2b6c2a.tar.bz2 rneovim-736c36c02f316c979da363c5120495179a2b6c2a.zip |
test: introduce skip() #21010
This is essentially a convenience wrapper around the `pending()`
function, similar to `skip_fragile()` but more general-purpose.
Also remove `pending_win32` function as it can be replaced by
`skip(iswin())`.
Diffstat (limited to 'test/functional/core/fileio_spec.lua')
-rw-r--r-- | test/functional/core/fileio_spec.lua | 21 |
1 files changed, 6 insertions, 15 deletions
diff --git a/test/functional/core/fileio_spec.lua b/test/functional/core/fileio_spec.lua index 795f639dad..00b9074e29 100644 --- a/test/functional/core/fileio_spec.lua +++ b/test/functional/core/fileio_spec.lua @@ -28,6 +28,7 @@ local write_file = helpers.write_file local Screen = require('test.functional.ui.screen') local feed_command = helpers.feed_command local isCI = helpers.isCI +local skip = helpers.skip describe('fileio', function() before_each(function() @@ -89,9 +90,7 @@ describe('fileio', function() end) it('backup #9709', function() - if isCI('cirrus') then - pending('FIXME: cirrus') - end + skip(isCI('cirrus')) clear({ args={ '-i', 'Xtest_startup_shada', '--cmd', 'set directory=Xtest_startup_swapdir' } }) @@ -111,9 +110,7 @@ describe('fileio', function() end) it('backup with full path #11214', function() - if isCI('cirrus') then - pending('FIXME: cirrus') - end + skip(isCI('cirrus')) clear() mkdir('Xtest_backupdir') command('set backup') @@ -135,9 +132,7 @@ describe('fileio', function() end) it('backup symlinked files #11349', function() - if isCI('cirrus') then - pending('FIXME: cirrus') - end + skip(isCI('cirrus')) clear() local initial_content = 'foo' @@ -159,9 +154,7 @@ describe('fileio', function() it('backup symlinked files in first avialable backupdir #11349', function() - if isCI('cirrus') then - pending('FIXME: cirrus') - end + skip(isCI('cirrus')) clear() local initial_content = 'foo' @@ -306,9 +299,7 @@ describe('tmpdir', function() end) -- "…/nvim.<user>/" has wrong permissions: - if iswin() then - return -- TODO(justinmk): need setfperm/getfperm on Windows. #8244 - end + skip(iswin(), 'TODO(justinmk): need setfperm/getfperm on Windows. #8244') os.remove(testlog) os.remove(tmproot) mkdir(tmproot) |