diff --git a/Code/Testing/otbTestMain.h b/Code/Testing/otbTestMain.h index 337cb548ea4725f8dbbbdc4552a83c615af387a3..0ff19b7a1f0e5ead3d2d0ae010ad55dff2792bf7 100644 --- a/Code/Testing/otbTestMain.h +++ b/Code/Testing/otbTestMain.h @@ -272,10 +272,8 @@ int main(int ac, char* av[]) std::cerr << "Failure: " << testToRun << ": no test identified " << testToRun << "\n"; return -1; } - - if (j != StringToTestFunctionMap.end()) + else { - std::cout<<"goooo?: "<<std::endl; MainFuncPointer f = j->second; int result; try @@ -313,8 +311,6 @@ int main(int ac, char* av[]) result = EXIT_FAILURE; } - std::cout<<"result: "<<result<<std::endl; - if (result != EXIT_SUCCESS ) { return -1; @@ -399,7 +395,7 @@ int main(int ac, char* av[]) return -1; } std::cout << "------------- End control baseline tests -------------" << std::endl; - + return result; } }