Skip to content

Commit 6db330e

Browse files
committed
Fix tests on aarch64
1 parent cdd7c12 commit 6db330e

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

test_prctl.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -238,8 +238,8 @@ def test_no_new_privs(self):
238238

239239
@require('pac_reset_keys')
240240
def test_pac_reset_keys(self):
241-
if self.arch == 'arm64':
242-
# FIXME untested
241+
if self.arch in ('arm64', 'aarch64'):
242+
# FIXME untested on arm64
243243
self.assertEqual(prctl.pac_reset_keys(prctl.PAC_APIAKEY), None)
244244
self.assertRaises(ValueError, prctl.pac_reset_keys, 0xff)
245245
else:
@@ -370,7 +370,7 @@ def test_timing(self):
370370
@require('set_tsc')
371371
def test_tsc(self):
372372
"""Test manipulation of the timestamp counter flag"""
373-
if re.match('i.86|x86_64', self.arch):
373+
if re.match('i.86|x86_64', self.arch) or self.arch == 'aarch64':
374374
prctl.set_tsc(prctl.TSC_SIGSEGV)
375375
self.assertEqual(prctl.get_tsc(), prctl.TSC_SIGSEGV)
376376
prctl.set_tsc(prctl.TSC_ENABLE)

0 commit comments

Comments
 (0)