diff --git a/Modules/IO/ImageBase/test/itkImageFileReaderTest1.cxx b/Modules/IO/ImageBase/test/itkImageFileReaderTest1.cxx index 496e8cae88f1..1f599c3541f7 100644 --- a/Modules/IO/ImageBase/test/itkImageFileReaderTest1.cxx +++ b/Modules/IO/ImageBase/test/itkImageFileReaderTest1.cxx @@ -23,7 +23,7 @@ int itkImageFileReaderTest1(int argc, char * argv[]) { - + ITK_TEST_EXPECT_TRUE(argc == 1); using ImageNDType = itk::Image; using ReaderType = itk::ImageFileReader; diff --git a/Modules/Registration/RegistrationMethodsv4/test/itkBSplineSyNImageRegistrationTest.cxx b/Modules/Registration/RegistrationMethodsv4/test/itkBSplineSyNImageRegistrationTest.cxx index 9ff16b1b6865..fe260f80fa38 100644 --- a/Modules/Registration/RegistrationMethodsv4/test/itkBSplineSyNImageRegistrationTest.cxx +++ b/Modules/Registration/RegistrationMethodsv4/test/itkBSplineSyNImageRegistrationTest.cxx @@ -75,8 +75,9 @@ class CommandIterationUpdate : public itk::Command template int -PerformBSplineSyNImageRegistration(int itkNotUsed(argc), char * argv[]) +PerformBSplineSyNImageRegistration(int argc, char * argv[]) { + ITK_TEST_EXPECT_TRUE(argc == 4); const unsigned int ImageDimension = TDimension; using PixelType = double; diff --git a/Modules/Registration/RegistrationMethodsv4/test/itkSimpleImageRegistrationTest3.cxx b/Modules/Registration/RegistrationMethodsv4/test/itkSimpleImageRegistrationTest3.cxx index aa83c6ecb751..d3d0cf691e2d 100644 --- a/Modules/Registration/RegistrationMethodsv4/test/itkSimpleImageRegistrationTest3.cxx +++ b/Modules/Registration/RegistrationMethodsv4/test/itkSimpleImageRegistrationTest3.cxx @@ -120,7 +120,7 @@ template int PerformCompositeImageRegistration(int argc, char * argv[]) { - if (argc != 4) + if (argc != 5) { std::cout << "ERROR: incorrect number of arguments" << std::endl; return EXIT_FAILURE; diff --git a/Modules/Registration/RegistrationMethodsv4/test/itkSimpleImageRegistrationTest4.cxx b/Modules/Registration/RegistrationMethodsv4/test/itkSimpleImageRegistrationTest4.cxx index cf953e0e5cf1..571a609f037d 100644 --- a/Modules/Registration/RegistrationMethodsv4/test/itkSimpleImageRegistrationTest4.cxx +++ b/Modules/Registration/RegistrationMethodsv4/test/itkSimpleImageRegistrationTest4.cxx @@ -77,8 +77,9 @@ class CommandIterationUpdate : public itk::Command template int -ImageRegistration(int itkNotUsed(argc), char * argv[]) +ImageRegistration(int argc, char * argv[]) { + ITK_TEST_EXPECT_TRUE(argc == 4); const unsigned int ImageDimension = TDimension; diff --git a/Modules/Registration/RegistrationMethodsv4/test/itkSyNImageRegistrationTest.cxx b/Modules/Registration/RegistrationMethodsv4/test/itkSyNImageRegistrationTest.cxx index 831cde43a2e8..5654883d4143 100644 --- a/Modules/Registration/RegistrationMethodsv4/test/itkSyNImageRegistrationTest.cxx +++ b/Modules/Registration/RegistrationMethodsv4/test/itkSyNImageRegistrationTest.cxx @@ -111,7 +111,7 @@ template int PerformDisplacementFieldImageRegistration(int argc, char * argv[]) { - if (argc != 4) + if (argc != 5) { std::cout << "ERROR: incorrect number of arguments" << std::endl; return EXIT_FAILURE;