summaryrefslogtreecommitdiffstats
path: root/src/testdir/check.vim
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2022-09-23 21:26:39 +0100
committerBram Moolenaar <Bram@vim.org>2022-09-23 21:26:39 +0100
commit0056ca71374feadf6bad27f5b66eaa18b6f7dad7 (patch)
tree19657856285144b7f8d37e32ed877ac47fc0c3ae /src/testdir/check.vim
parenta9b0f8f7f35ddd281f4fa464d163dc4fb05e1d7b (diff)
patch 9.0.0564: a few tests keep failing on MacOS M1v9.0.0564
Problem: A few tests keep failing on MacOS M1. Solution: Add a test check CheckNotMacM1. Fix timer tests.
Diffstat (limited to 'src/testdir/check.vim')
-rw-r--r--src/testdir/check.vim8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/testdir/check.vim b/src/testdir/check.vim
index c4dca0b784..c3f2563898 100644
--- a/src/testdir/check.vim
+++ b/src/testdir/check.vim
@@ -111,6 +111,14 @@ func CheckNotBSD()
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()