diff --git a/Code/Common/otbTestMain.h b/Code/Common/otbTestMain.h index 88452f8d8b3ab5a3033b39a915bce00f38cc4bad..8da0c266d742de0c11bb530fe768403a17f80f82 100644 --- a/Code/Common/otbTestMain.h +++ b/Code/Common/otbTestMain.h @@ -153,6 +153,10 @@ int main(int ac, char* av[] ) { // Invoke the test's "main" function. result = (*f)(ac-1, av+1); + + if (result!=0) + itkGenericExceptionMacro(<<"Bad function return, no regresion test !"); + otbMsgDebugMacro(<<"---------------- DEBUT Controle NON-REGRESION ------------------- "); // Make a list of possible baselines // Test de non regression sur des images