diff options
author | Justin M. Keyes <justinkz@gmail.com> | 2017-12-02 20:37:43 +0100 |
---|---|---|
committer | Justin M. Keyes <justinkz@gmail.com> | 2017-12-05 01:46:40 +0100 |
commit | 175174597dfb773ebe967adcae10a7eb568c32c2 (patch) | |
tree | 419742bc8f8fe3de6df18e00cee1d0c8126b3fba | |
parent | a11751eae864b4373d4dfc52905b682ae6ed84d4 (diff) | |
download | rneovim-175174597dfb773ebe967adcae10a7eb568c32c2.tar.gz rneovim-175174597dfb773ebe967adcae10a7eb568c32c2.tar.bz2 rneovim-175174597dfb773ebe967adcae10a7eb568c32c2.zip |
test: macOS 10.13: unibilium cannot find "xterm" terminfo
On some macOS versions we can't find the terminfo for whatever reason,
so just skip the test if it fails.
-rw-r--r-- | test/functional/terminal/tui_spec.lua | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/test/functional/terminal/tui_spec.lua b/test/functional/terminal/tui_spec.lua index c33845e6d9..79439cc9e9 100644 --- a/test/functional/terminal/tui_spec.lua +++ b/test/functional/terminal/tui_spec.lua @@ -641,6 +641,7 @@ end) describe("tui 'term' option", function() local screen local is_bsd = not not string.find(string.lower(uname()), 'bsd') + local is_macos = not not string.find(string.lower(uname()), 'darwin') local function assert_term(term_envvar, term_expected) clear() @@ -666,8 +667,13 @@ describe("tui 'term' option", function() end) it('gets system-provided term if $TERM is valid', function() - if is_bsd then -- BSD lacks terminfo, we always use builtin there. + if is_bsd then -- BSD lacks terminfo, builtin is always used. assert_term("xterm", "builtin_xterm") + elseif is_macos then + local status, _ = pcall(assert_term, "xterm", "xterm") + if not status then + pending("macOS: unibilium could not find terminfo", function() end) + end else assert_term("xterm", "xterm") end |