diff --git a/Modules/Segmentation/LabelVoting/test/itkMultiLabelSTAPLEImageFilterTest.cxx b/Modules/Segmentation/LabelVoting/test/itkMultiLabelSTAPLEImageFilterTest.cxx index 2559aba0c33..0bd8460c491 100644 --- a/Modules/Segmentation/LabelVoting/test/itkMultiLabelSTAPLEImageFilterTest.cxx +++ b/Modules/Segmentation/LabelVoting/test/itkMultiLabelSTAPLEImageFilterTest.cxx @@ -185,7 +185,7 @@ itkMultiLabelSTAPLEImageFilterTest(int, char *[]) filter->UnsetLabelForUndecidedPixels(); // Execute the filter - filter->Update(); + ITK_TRY_EXPECT_NO_EXCEPTION(filter->Update()); // compare to correct results it = myIteratorType(outputImage, outputImage->GetBufferedRegion()); @@ -205,7 +205,7 @@ itkMultiLabelSTAPLEImageFilterTest(int, char *[]) filter->SetInput(2, inputImageC); // Execute the filter - filter->Update(); + ITK_TRY_EXPECT_NO_EXCEPTION(filter->Update()); // compare to correct results it = myIteratorType(outputImage, outputImage->GetBufferedRegion());