Commit b16fe765 authored by Jeff Baumes's avatar Jeff Baumes
Browse files

BUG: Adding DeleteAll() call to Java Regression test, and failing if the image...

BUG: Adding DeleteAll() call to Java Regression test, and failing if the image does not match the test image.  Adding temporary directory argument to the test.
parent 29f34f5c
......@@ -247,7 +247,8 @@ IF(JAVA_COMPILE)
ADD_TEST(JavaRegression ${JAVA_RUNTIME}
-classpath ${VTK_JAR_PATH}/vtk.jar${SEPARATOR}${VTK_BINARY_DIR}/Wrapping/Java
Regression -D ${VTK_DATA_ROOT}
-V Baseline/Graphics/Cone.png)
-V Baseline/Graphics/Cone.png
-T ${VTK_BINARY_DIR}/Testing/Temporary)
ENDIF(VTK_USE_RENDERING AND VTK_USE_DISPLAY)
ENDIF(BUILD_TESTING)
......@@ -310,7 +311,8 @@ IF(JAVA_COMPILE)
ADD_TEST(JavaRegression ${JAVA_RUNTIME}
-classpath ${VTK_JAR_PATH}/vtk.jar${SEPARATOR}${VTK_BINARY_DIR}/Wrapping/Java
Regression -D ${VTK_DATA_ROOT}
-V Baseline/Graphics/Cone.png)
-V Baseline/Graphics/Cone.png
-T ${VTK_BINARY_DIR}/Testing/Temporary)
ENDIF(VTK_USE_RENDERING AND VTK_USE_DISPLAY)
ENDIF(BUILD_TESTING)
......
......@@ -159,9 +159,10 @@ public class Regression
}
else
{
vtkTesting2.RegressionTest(renWin, 10);
retVal2 = vtkTesting2.RegressionTest(renWin, 10);
}
vtkGlobalJavaHash.DeleteAll();
if ( retVal0 != vtkTesting2.PASSED )
{
vtkTesting2.Exit(retVal0);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment