aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorzeertzjq <zeertzjq@outlook.com>2023-09-29 06:06:28 +0800
committerzeertzjq <zeertzjq@outlook.com>2023-09-29 06:07:27 +0800
commit7f58b2bb6a1a667689d450d9e9738d68a91f0518 (patch)
tree152c662135a750abe05ed31db9b29fc21ff895bd
parent28ffd96c9b3912b65bbe0ad0fe8fb123407a6d1e (diff)
downloadrneovim-7f58b2bb6a1a667689d450d9e9738d68a91f0518.tar.gz
rneovim-7f58b2bb6a1a667689d450d9e9738d68a91f0518.tar.bz2
rneovim-7f58b2bb6a1a667689d450d9e9738d68a91f0518.zip
vim-patch:9.0.0607: verbose echo message test fails on Mac OS
Problem: Verbose echo message test fails on Mac OS. Solution: Skip the test on Mac OS. https://github.com/vim/vim/commit/f802767df7b4532651fcf11d49e812ead32db45b Co-authored-by: Bram Moolenaar <Bram@vim.org>
-rw-r--r--test/old/testdir/check.vim16
-rw-r--r--test/old/testdir/test_messages.vim3
2 files changed, 18 insertions, 1 deletions
diff --git a/test/old/testdir/check.vim b/test/old/testdir/check.vim
index af1a80250c..647e25b214 100644
--- a/test/old/testdir/check.vim
+++ b/test/old/testdir/check.vim
@@ -108,6 +108,22 @@ func CheckNotBSD()
endif
endfunc
+" Command to check for not running on a MacOS
+command CheckNotMac call CheckNotMac()
+func CheckNotMac()
+ if has('mac')
+ throw 'Skipped: does not work on MacOS'
+ endif
+endfunc
+
+" Command to check for not running on a MacOS M1 system.
+command CheckNotMacM1 call CheckNotMacM1()
+func CheckNotMacM1()
+ if has('mac') && system('uname -a') =~ '\<arm64\>'
+ throw 'Skipped: does not work on MacOS M1'
+ endif
+endfunc
+
" Command to check that making screendumps is supported.
" Caller must source screendump.vim
command CheckScreendump call CheckScreendump()
diff --git a/test/old/testdir/test_messages.vim b/test/old/testdir/test_messages.vim
index adafb6bd23..9a999d71a8 100644
--- a/test/old/testdir/test_messages.vim
+++ b/test/old/testdir/test_messages.vim
@@ -379,7 +379,8 @@ endfunc
" Test verbose message before echo command
func Test_echo_verbose_system()
CheckRunVimInTerminal
- CheckUnix
+ CheckUnix " needs the "seq" command
+ CheckNotMac " doesn't use /tmp
let buf = RunVimInTerminal('', {'rows': 10})
call term_sendkeys(buf, ":4 verbose echo system('seq 20')\<CR>")