1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38
|
Index: petsc4py/test/test_ts_py.py
===================================================================
--- petsc4py.orig/test/test_ts_py.py 2020-09-20 23:25:54.104534214 +0800
+++ petsc4py/test/test_ts_py.py 2020-09-20 23:26:42.100345147 +0800
@@ -3,6 +3,9 @@
from sys import getrefcount
import gc
+import platform
+test_machine = platform.machine()
+
# --------------------------------------------------------------------
class MyODE:
@@ -86,6 +89,7 @@
self.assertEqual(ctx.log['destroy'], 1)
self.assertEqual(getrefcount(ctx), 2)
+ @unittest.skipIf('ppc' in test_machine, "testSolve segfaults on ppc arches")
def testSolve(self):
ts = self.ts
ts.setProblemType(ts.ProblemType.NONLINEAR)
@@ -126,6 +130,7 @@
self.assertTrue('__ifunction__' in dct)
self.assertTrue('__ijacobian__' in dct)
+ @unittest.skipIf('ppc' in test_machine, "indirectly triggers segfault on ppc arches")
def testFDColor(self):
#
ts = self.ts
@@ -156,6 +161,7 @@
ts.solve(u)
self.nsolve +=1
+ @unittest.skipIf('ppc' in test_machine, "testResetAndSolve segfaults on ppc arches")
def testResetAndSolve(self):
self.ts.reset()
self.ts.setStepNumber(0)
|