diff options
author | Justin M. Keyes <justinkz@gmail.com> | 2023-07-21 06:37:34 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-07-21 06:37:34 -0700 |
commit | 02d859a07387a952442a72e913b23521ec39c199 (patch) | |
tree | 98e6e639f6697fa8b3b3a21652723ec588de941d /test/functional/lua/ui_spec.lua | |
parent | 4448f594d3d6fbe873fc2b2d832551ef454ed908 (diff) | |
parent | 7907b1fca5fce69e966ab1071df8e6d11afda41d (diff) | |
download | rneovim-02d859a07387a952442a72e913b23521ec39c199.tar.gz rneovim-02d859a07387a952442a72e913b23521ec39c199.tar.bz2 rneovim-02d859a07387a952442a72e913b23521ec39c199.zip |
Merge #24392 from mrshmllow/gx_win
fix(ui.open): some URLs fail on Windows
Diffstat (limited to 'test/functional/lua/ui_spec.lua')
-rw-r--r-- | test/functional/lua/ui_spec.lua | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/test/functional/lua/ui_spec.lua b/test/functional/lua/ui_spec.lua index 808b25d9ea..d4c150c5f2 100644 --- a/test/functional/lua/ui_spec.lua +++ b/test/functional/lua/ui_spec.lua @@ -6,6 +6,7 @@ local clear = helpers.clear local feed = helpers.feed local eval = helpers.eval local is_ci = helpers.is_ci +local is_os = helpers.is_os local poke_eventloop = helpers.poke_eventloop describe('vim.ui', function() @@ -134,8 +135,11 @@ describe('vim.ui', function() describe('open()', function() it('validation', function() - if is_ci('github') then - matches('vim.ui.open: command failed %(%d%): { "[^"]+", "non%-existent%-file" }', + if is_os('win') or not is_ci('github') then + exec_lua[[vim.system = function() return { wait=function() return { code=3} end } end]] + end + if not is_os('bsd') then + matches('vim.ui.open: command failed %(%d%): { "[^"]+", .*"non%-existent%-file" }', exec_lua[[local _, err = vim.ui.open('non-existent-file') ; return err]]) end |