return retVal;
it should be
return !retval,
the imagecomparison returns the opposite result from what you'd expect
if I recall correctly.
JB
___
CMake mailing list
CMake@cmake.org
http://www.cmake.org/mailman/listinfo/cmake
Hi David,
piping the command line output from
ctest -V -R TestCommonGeomUtils2 gives:
Start processing tests
Test project
Constructing a list of tests
Done constructing a list of tests
Changing directory into
d:/Developer/Releases/Borland/vtkLocalStatic/Common/Testing/Cxx
3/ 3 Testing TestComm
Looks like the test didn't fail:
0Standard0.14
...at least not because of ImageError. The value for the ImageError
measurement is 0. If it failed, it failed because of something else.
Did ctest report that the test failed? What's the output if you run
ctest -V -R TestCommonGeomUtils2?
You'
Hi David,
thanks for your reply.
I have a couple more questions (for anyone) based on
CMake testing of VTK/Examples/Build/vtkMy,
since I seem to be generating image test errors with ctest.
In my root CMakeLists.txt, I added the following to do
hopefully basic testing, without submitting results
The output that goes to the console during a ctest driven execution of
your test will show up amidst the ctest output if you use "-V" when
invoking ctest.
And even if you don't use -V, ctest puts the console output from tests
like this into "${CMAKE_BINARY_DIR}/Testing/Temporary/LastTest*.log"
I have a build similar to VTK/Examples/Build/vtkMy
and I have added ctest funtionality to test my custom
VTK classes. In a test driver that evaluates numeric
expressions, e.g. a stupid ex.:
in myTest(int,char*[])
{
int a =1;
int b = 2;
int retVal = 0;
if((a + b) != 500)
{
vtkGene