14
0
Files
python-python-prctl/memory_failure_early_kill.patch
Tomáš Chvátal 311551ec9f Accepting request 832752 from home:michals
- Fixing arch-dependent test failures (bsc#1176085):
  * renamed failing-on-i586.patch to memory_failure_early_kill.patch
    * and modified it to skip the test also on s390x
  * added bigendian.patch
  * added powerpc.patch
  * huge thanks to Michal Suchánek

OBS-URL: https://build.opensuse.org/request/show/832752
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-python-prctl?expand=0&rev=5
2020-09-07 12:27:41 +00:00

13 lines
556 B
Diff

Index: python-prctl-1.7/test_prctl.py
===================================================================
--- python-prctl-1.7.orig/test_prctl.py
+++ python-prctl-1.7/test_prctl.py
@@ -155,6 +155,7 @@ class PrctlTest(unittest.TestCase):
self.assertEqual(prctl.get_keepcaps(), False)
@require('set_mce_kill')
+ @unittest.skipIf(sys.maxsize <= 2**32 or arch == 's390x', 'no such file on this architecture')
def test_mce_kill(self):
"""Test the MCE_KILL setting"""
fd = open('/proc/sys/vm/memory_failure_early_kill')