[Insight-developers] Failing dashboard test - itkStatisticsAlgorithmTest
Luis Ibanez
luis.ibanez at kitware.com
Sun Nov 15 09:52:52 EST 2009
Hi Sean,
Just to double check...
Looking at the notes of this build, it seems that it has REVIEW set to OFF.
If that is the case, then we are talking about the test call to InsertSort in
Insight/Testing/Code/Numerics/Statistics/itkStatisticsAlgorithmTest.cxx
lines 149-155.
and the corresponding implementation code in:
Insight/Code/Numerics/Statistics/itkStatisticsAlgorithm.txx
lines 535-563
template< class TSubsample >
inline void InsertSort(TSubsample* sample,
unsigned int activeDimension,
int beginIndex,
int endIndex)
{
int backwardSearchBegin;
int backwardIndex;
for (backwardSearchBegin = beginIndex + 1;
backwardSearchBegin < endIndex;
backwardSearchBegin++)
{
backwardIndex = backwardSearchBegin;
while (backwardIndex > beginIndex)
{
if (sample->GetMeasurementVectorByIndex(backwardIndex)[activeDimension] <
sample->GetMeasurementVectorByIndex(backwardIndex -
1)[activeDimension])
{
sample->Swap(backwardIndex, backwardIndex - 1);
}
else
{
break;
}
--backwardIndex;
}
}
}
That said,
The test is not failing in today's submission from:
RogueResearch6 - Mac10.6-Insight-llvm-dbg-i386
Is this the machine where you are observing the test failing normally ?
More information about the Insight-developers
mailing list