From: Anthony Geay Date: Tue, 5 Jan 2016 15:48:46 +0000 (+0100) Subject: Work around to solve SIGSEGV in test19. X-Git-Tag: V7_8_0a1~5 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=0e8a803e673f4abf2fc951c94ec45010726e6e4b;p=modules%2Fparavis.git Work around to solve SIGSEGV in test19. --- diff --git a/src/Plugins/MEDReader/Test/testMEDReader19.py b/src/Plugins/MEDReader/Test/testMEDReader19.py index 1181adf9..ea2fcde8 100644 --- a/src/Plugins/MEDReader/Test/testMEDReader19.py +++ b/src/Plugins/MEDReader/Test/testMEDReader19.py @@ -23,9 +23,9 @@ mm.write(fname,2) # #### import the simple module from the paraview from paraview.simple import * +import vtk.test.Testing # this line must be here. If not SIGSEGV ! KW10658 #### disable automatic camera reset on 'Show' paraview.simple._DisableFirstRenderCameraReset() - # create a new 'MED Reader' testMEDReader19med = MEDReader(FileName=fname) testMEDReader19med.AllArrays = ['TS0/mesh/ComSup0/mesh@@][@@P0'] @@ -73,7 +73,7 @@ renderView1.CameraParallelScale = 0.7071067811865476 res=servermanager.Fetch(extractCellType1,0) assert(res.GetBlock(0).GetNumberOfCells()==2) # problem was here in PV4.3.1 -"""# compare with baseline image # Waiting KW return to uncomment this part because SIGSEGV in PV5. +# compare with baseline image # Waiting KW return to uncomment this part because SIGSEGV in PV5. import os import sys try: @@ -87,4 +87,4 @@ import vtk.test.Testing vtk.test.Testing.VTK_TEMP_DIR = vtk.util.misc.vtkGetTempDir() vtk.test.Testing.compareImage(GetActiveView().GetRenderWindow(), baseline_file, threshold=25) vtk.test.Testing.interact() -""" +