[CMake] ctest ques.: capture driver errs
Dean Inglis
dean.inglis at sympatico.ca
Wed Sep 20 15:35:17 EDT 2006
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 TestCommonGeomUtils2
Test command:
d:\Developer\Releases\Borland\vtkStatic\bin\LocalCommonCxxTests.exe
TestCommonGeomUtils2 -V
d:/Developer/ISSCode/vtkLocal/Testing/baseline/TestCommonGeomUtils2.png -T
d:/Developer/Releases/Borland/vtkLocalStatic/Testing/Temporary
<DartMeasurement name="ImageError"
type="numeric/double">0</DartMeasurement><DartMeasurement
name="BaselineImage"
type="text/string">Standard</DartMeasurement><DartMeasurement
name="WallTime" type="numeric/double">1.352</DartMeasurement>
<DartMeasurement name="CPUTime"
type="numeric/double">1.352</DartMeasurement>
-- Process completed
***Failed
0% tests passed, 1 tests failed out of 1
3 - TestCommonGeomUtils2 (Failed)
Errors while running CTest
In my test app I am using a macro to
instantiate smartpointers:
#include "vtkSmartPointer.h"
#define VTKLOCAL_CREATE(type, var) \
vtkSmartPointer<type> var = vtkSmartPointer<type>::New()
so there shouldn't be any mem leaks, and since
I build with vtkDebugLeaks on, those errors should
be caught/shown anyway. Stumped....
Dean
>
> Looks like the test didn't fail:
>
> <DartMeasurement name="ImageError"
type="numeric/double">0</DartMeasurement><DartMeasurement
name="BaselineImage"
type="text/string">Standard</DartMeasurement><DartMeasurement
name="WallTime" type="numeric/double">0.14</DartMeasurement>
>
> ...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're on the right track...
>
>
More information about the CMake
mailing list