Remove sz requirement and implement proper fix for failure to mmap shm objects on OS X. Apparently they have to be mapped shared.

This commit is contained in:
Kovid Goyal
2017-09-28 17:34:22 +05:30
parent dbd7ec5b27
commit c01f009e42
2 changed files with 4 additions and 5 deletions

View File

@@ -90,5 +90,5 @@ class TestGraphics(BaseTest):
# Test loading from POSIX SHM
name = '/kitty-test-shm'
g.shm_write(name, random_data)
sl(name, s=24, v=32, t='s', S=len(random_data), expecting_data=random_data)
sl(name, s=24, v=32, t='s', expecting_data=random_data)
self.assertRaises(FileNotFoundError, g.shm_unlink, name) # check that file was deleted