Skip to content

Commit dd4eabe

Browse files
committed
Skip test_funcptr on Mono/x64 running on ARM64
1 parent 8c1ed44 commit dd4eabe

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

src/core/IronPython.StdLib/lib/ctypes/test/test_funcptr.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import os, unittest
2+
from iptest import is_arm64, is_mono, mono_version
23
from ctypes import *
34

45
try:
@@ -10,6 +11,7 @@
1011
import _ctypes_test
1112
lib = CDLL(_ctypes_test.__file__)
1213

14+
@unittest.skipIf(is_arm64 and is_mono and mono_version < (6, 14, 0), "Mono 6.14+ required for ARM64 support")
1315
class CFuncPtrTestCase(unittest.TestCase):
1416
def test_basic(self):
1517
X = WINFUNCTYPE(c_int, c_int, c_int)

src/core/IronPython/Lib/iptest/test_env.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,12 @@
6565
is_net45Or46 = is_net40 and version.Minor == 0 and version.Build == 30319
6666
is_net46 = is_net40 and version.Minor == 0 and version.Build == 30319 and version.Revision == 42000
6767

68+
#-- Mono version we're running on (if any)
69+
mono_version = ()
70+
if is_mono:
71+
import clr
72+
mono_version = tuple(int(x) for x in clr.FrameworkDescription.Split(' ')[1].Split('.'))
73+
6874
#--Newlines
6975
if is_ironpython:
7076
newline = System.Environment.NewLine

0 commit comments

Comments
 (0)