File: ppc_skip_test_ts_py.patch

package info (click to toggle)
petsc4py 3.14.1-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 22,504 kB
  • sloc: javascript: 8,795; python: 8,131; ansic: 1,531; f90: 322; makefile: 316; sh: 10
file content (38 lines) | stat: -rw-r--r-- 1,268 bytes parent folder | download
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)