diff options
author | Edd Barrett <vext01@gmail.com> | 2019-08-18 13:39:31 +0100 |
---|---|---|
committer | Justin M. Keyes <justinkz@gmail.com> | 2019-09-01 22:49:33 -0700 |
commit | b64af88c848204f2193cf0f18b94d12731e5bd2f (patch) | |
tree | 19322612c359903badbe6f3342977b5ec336c4a5 /test/functional/core/channels_spec.lua | |
parent | d1bed81ad8a1dde99953e1f880e5794680d53d62 (diff) | |
download | rneovim-b64af88c848204f2193cf0f18b94d12731e5bd2f.tar.gz rneovim-b64af88c848204f2193cf0f18b94d12731e5bd2f.tar.bz2 rneovim-b64af88c848204f2193cf0f18b94d12731e5bd2f.zip |
CI/OpenBSD: run functional tests
Adapt some tests for OpenBSD:
- scrollback_spec:
- seq(1) is not available on OpenBSD: we'd use jot(1).
- Instead use a (hopefully) portable awk(1) snippet.
- channels_spec
- job_spec
- tui_spec
Diffstat (limited to 'test/functional/core/channels_spec.lua')
-rw-r--r-- | test/functional/core/channels_spec.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/functional/core/channels_spec.lua b/test/functional/core/channels_spec.lua index ddaed1c448..30dcb6d7b4 100644 --- a/test/functional/core/channels_spec.lua +++ b/test/functional/core/channels_spec.lua @@ -139,8 +139,8 @@ describe('channels', function() command("call chansend(id, 'incomplet\004')") - local is_freebsd = (string.lower(uname()) == 'freebsd') - local bsdlike = is_freebsd or (os_name() == "osx") + local is_bsd = not not string.find(string.lower(uname()), 'bsd') + local bsdlike = is_bsd or (os_name() == "osx") local extra = bsdlike and "^D\008\008" or "" expect_twoline(id, "stdout", "incomplet"..extra, "[1, ['incomplet'], 'stdin']", true) |