mirror of
https://github.com/kovidgoyal/kitty.git
synced 2026-10-12 00:38:37 +00:00
Skip test inapplicable on macOS
This commit is contained in:
parent
3281919056
commit
398fa49084
1 changed files with 3 additions and 1 deletions
|
|
@ -5,7 +5,7 @@
|
|||
import os
|
||||
import subprocess
|
||||
|
||||
from kitty.constants import kitten_exe
|
||||
from kitty.constants import is_macos, kitten_exe
|
||||
from kitty.fast_data_types import shm_unlink
|
||||
from kitty.shm import SharedMemory
|
||||
|
||||
|
|
@ -29,6 +29,8 @@ class SHMTest(BaseTest):
|
|||
self.assertEqual(data, q)
|
||||
|
||||
def test_shm_ownership_verification(self):
|
||||
if is_macos:
|
||||
self.skipTest('macOS does not support fchmod() for shm files')
|
||||
with SharedMemory(size=64, unlink_on_exit=True) as shm:
|
||||
shm.verify_owner_and_mode()
|
||||
for mode in (0o644, 0o400, 0o660):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue