Mercurial > vim
comparison src/testdir/test_autocmd.vim @ 30457:7ab65e398be7 v9.0.0564
patch 9.0.0564: a few tests keep failing on MacOS M1
Commit: https://github.com/vim/vim/commit/0056ca71374feadf6bad27f5b66eaa18b6f7dad7
Author: Bram Moolenaar <Bram@vim.org>
Date: Fri Sep 23 21:26:39 2022 +0100
patch 9.0.0564: a few tests keep failing on MacOS M1
Problem: A few tests keep failing on MacOS M1.
Solution: Add a test check CheckNotMacM1. Fix timer tests.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Fri, 23 Sep 2022 22:30:02 +0200 |
parents | 69ff2bd737a9 |
children | 8e73ecbee60d |
comparison
equal
deleted
inserted
replaced
30456:424a31190cb6 | 30457:7ab65e398be7 |
---|---|
2996 endfunc | 2996 endfunc |
2997 | 2997 |
2998 " Tests for SigUSR1 autocmd event, which is only available on posix systems. | 2998 " Tests for SigUSR1 autocmd event, which is only available on posix systems. |
2999 func Test_autocmd_sigusr1() | 2999 func Test_autocmd_sigusr1() |
3000 CheckUnix | 3000 CheckUnix |
3001 " FIXME: should this work on MacOS M1? | |
3002 CheckNotMacM1 | |
3001 CheckExecutable /bin/kill | 3003 CheckExecutable /bin/kill |
3002 | 3004 |
3003 let g:sigusr1_passed = 0 | 3005 let g:sigusr1_passed = 0 |
3004 au SigUSR1 * let g:sigusr1_passed = 1 | 3006 au SigUSR1 * let g:sigusr1_passed = 1 |
3005 call system('/bin/kill -s usr1 ' . getpid()) | 3007 call system('/bin/kill -s usr1 ' . getpid()) |