Author: Drew Parsons <dparsons@debian.org>
Description: skip several tests on ppc due to segfaults
Forwarded: https://gitlab.com/petsc/petsc4py/-/issues/4

Index: petsc4py/test/test_ts_py.py
===================================================================
--- petsc4py.orig/test/test_ts_py.py	2025-11-06 12:06:31.370470167 +0100
+++ petsc4py/test/test_ts_py.py	2025-11-06 12:06:31.363403362 +0100
@@ -2,6 +2,9 @@
 from petsc4py import PETSc
 from sys import getrefcount
 
+import platform
+test_machine = platform.machine()
+
 # --------------------------------------------------------------------
 
 
@@ -92,6 +95,7 @@
         pytype = f'{ctx.__module__}.{type(ctx).__name__}'
         self.assertTrue(self.ts.getPythonType() == pytype)
 
+    @unittest.skipIf('ppc' in test_machine, "testSolve segfaults on ppc arches")
     def testSolve(self):
         ts = self.ts
         ts.setProblemType(ts.ProblemType.NONLINEAR)
@@ -132,6 +136,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
@@ -163,6 +168,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)
