Commit a7c7ab99 authored by GILLES Sebastien's avatar GILLES Sebastien

#857 Exit programs through a return EXIT_FAILURE when they end due to a caught exception.

parent cfbd3079
......@@ -92,7 +92,7 @@
</CommandLineArgument>
<CommandLineArgument
argument = "--input_parameters /Volumes/Data/${USER}/HappyHeart/Results/Elasticity/input_parameter_file.lua"
isEnabled = "YES">
isEnabled = "NO">
</CommandLineArgument>
<CommandLineArgument
argument = "--input_parameters /Volumes/Data/${USER}/HappyHeart/Results/SurfacicBidomain/MS/input_parameter_file.lua"
......
......@@ -8,7 +8,7 @@ import targets
if __name__ == "__main__":
target_list = targets.TestTargetList()
target_list = (('acoustic_wave', ('demo_input_acoustic_wave_1D.lua', 'demo_input_acoustic_wave_1D_DirBCs.lua', 'demo_input_acoustic_wave_2D.lua', 'demo_input_acoustic_wave_2D_DirBCs.lua')), )
happy_heart_path = os.path.join("/Users", os.environ['USER'], "Codes", "HappyHeart")
......
......@@ -6,6 +6,8 @@
// Copyright © 2016 Inria. All rights reserved.
//
#include <cstdlib>
#include "Utilities/Exceptions/PrintAndAbort.hpp"
#include "Core/InitHappyHeart.hpp"
......@@ -51,8 +53,9 @@ int main(int argc, char ** argv)
oconv << "Exception caught from InitHappyHeart<InputParameterList>: " << e.what() << std::endl;
std::cout << oconv.str();
return EXIT_FAILURE;
}
return 0;
return EXIT_SUCCESS;
}
......@@ -6,6 +6,8 @@
// Copyright (c) 2015 Inria. All rights reserved.
//
#include <cstdlib>
#include "Utilities/Exceptions/PrintAndAbort.hpp"
#include "Core/InitHappyHeart.hpp"
......@@ -51,7 +53,8 @@ int main(int argc, char ** argv)
oconv << "Exception caught from InitHappyHeart<InputParameterList>: " << e.what() << std::endl;
std::cout << oconv.str();
return EXIT_FAILURE;
}
return 0;
return EXIT_SUCCESS;
}
......@@ -6,6 +6,8 @@
// Copyright (c) 2015 Inria. All rights reserved.
//
#include <cstdlib>
#include "Utilities/Exceptions/PrintAndAbort.hpp"
#include "Core/InitHappyHeart.hpp"
......@@ -51,7 +53,9 @@ int main(int argc, char ** argv)
oconv << "Exception caught from InitHappyHeart<InputParameterList>: " << e.what() << std::endl;
std::cout << oconv.str();
return EXIT_FAILURE;
}
return 0;
return EXIT_SUCCESS;
}
......@@ -6,6 +6,8 @@
// Copyright (c) 2015 Inria. All rights reserved.
//
#include <cstdlib>
#include "Utilities/Exceptions/PrintAndAbort.hpp"
#include "Core/InitHappyHeart.hpp"
......@@ -51,8 +53,9 @@ int main(int argc, char ** argv)
oconv << "Exception caught from InitHappyHeart<InputParameterList>: " << e.what() << std::endl;
std::cout << oconv.str();
return EXIT_FAILURE;
}
return 0;
return EXIT_SUCCESS;
}
......@@ -6,6 +6,8 @@
// Copyright (c) 2015 Inria. All rights reserved.
//
#include <cstdlib>
#include "Utilities/Exceptions/PrintAndAbort.hpp"
#include "Core/InitHappyHeart.hpp"
......@@ -51,8 +53,9 @@ int main(int argc, char ** argv)
oconv << "Exception caught from InitHappyHeart<InputParameterList>: " << e.what() << std::endl;
std::cout << oconv.str();
return EXIT_FAILURE;
}
return 0;
return EXIT_SUCCESS;
}
......@@ -6,6 +6,8 @@
// Copyright (c) 2015 Inria. All rights reserved.
//
#include <cstdlib>
#include "Utilities/Exceptions/PrintAndAbort.hpp"
#include "Core/InitHappyHeart.hpp"
......@@ -73,8 +75,9 @@ int main(int argc, char ** argv)
oconv << "Exception caught from InitHappyHeart<InputParameterList>: " << e.what() << std::endl;
std::cout << oconv.str();
return EXIT_FAILURE;
}
return 0;
return EXIT_SUCCESS;
}
......@@ -6,6 +6,8 @@
// Copyright (c) 2015 Inria. All rights reserved.
//
#include <cstdlib>
#include "Utilities/Exceptions/PrintAndAbort.hpp"
#include "Core/InitHappyHeart.hpp"
......@@ -51,8 +53,10 @@ int main(int argc, char ** argv)
oconv << "Exception caught from InitHappyHeart<InputParameterList>: " << e.what() << std::endl;
std::cout << oconv.str();
return EXIT_FAILURE;
}
return 0;
return EXIT_SUCCESS;
}
#include <cstdlib>
#include "Utilities/Exceptions/PrintAndAbort.hpp"
#include "Core/InitHappyHeart.hpp"
......@@ -47,7 +49,8 @@ int main(int argc, char ** argv)
std::ostringstream oconv;
oconv << "Exception caught from InitHappyHeart<InputParameterList>: " << e.what() << std::endl;
std::cout << oconv.str();
return EXIT_FAILURE;
}
return 0;
return EXIT_SUCCESS;
}
#include <cstdlib>
#include "Utilities/Exceptions/PrintAndAbort.hpp"
#include "Core/InitHappyHeart.hpp"
......@@ -46,7 +48,8 @@ int main(int argc, char ** argv)
std::ostringstream oconv;
oconv << "Exception caught from InitHappyHeart<InputParameterList>: " << e.what() << std::endl;
std::cout << oconv.str();
return EXIT_FAILURE;
}
return 0;
return EXIT_SUCCESS;
}
#include <cstdlib>
#include "Utilities/Exceptions/PrintAndAbort.hpp"
#include "Core/InitHappyHeart.hpp"
......@@ -46,7 +48,9 @@ int main(int argc, char ** argv)
std::ostringstream oconv;
oconv << "Exception caught from InitHappyHeart<InputParameterList>: " << e.what() << std::endl;
std::cout << oconv.str();
return EXIT_FAILURE;
}
return 0;
return EXIT_SUCCESS;
}
#include <cstdlib>
#include "Utilities/Exceptions/PrintAndAbort.hpp"
#include "Core/InitHappyHeart.hpp"
......@@ -46,7 +48,8 @@ int main(int argc, char ** argv)
std::ostringstream oconv;
oconv << "Exception caught from InitHappyHeart<InputParameterList>: " << e.what() << std::endl;
std::cout << oconv.str();
return EXIT_FAILURE;
}
return 0;
return EXIT_SUCCESS;
}
......@@ -6,6 +6,8 @@
// Copyright (c) 2015 Inria. All rights reserved.
//
#include <cstdlib>
#include "Utilities/Exceptions/PrintAndAbort.hpp"
#include "Core/InitHappyHeart.hpp"
......@@ -88,8 +90,10 @@ int main(int argc, char ** argv)
oconv << "Exception caught from InitHappyHeart<InputParameterList>: " << e.what() << std::endl;
std::cout << oconv.str();
return EXIT_FAILURE;
}
return 0;
return EXIT_SUCCESS;
}
......@@ -6,6 +6,8 @@
// Copyright (c) 2015 Inria. All rights reserved.
//
#include <cstdlib>
#include "Utilities/Exceptions/PrintAndAbort.hpp"
#include "Core/InitHappyHeart.hpp"
......@@ -88,8 +90,9 @@ int main(int argc, char ** argv)
oconv << "Exception caught from InitHappyHeart<InputParameterList>: " << e.what() << std::endl;
std::cout << oconv.str();
return EXIT_FAILURE;
}
return 0;
return EXIT_SUCCESS;
}
......@@ -6,6 +6,8 @@
// Copyright (c) 2015 Inria. All rights reserved.
//
#include <cstdlib>
#include "Utilities/Exceptions/PrintAndAbort.hpp"
#include "Utilities/TimeKeep/TimeKeep.hpp"
......@@ -52,7 +54,8 @@ int main(int argc, char ** argv)
oconv << "Exception caught from InitHappyHeart<InputParameterList>: " << e.what() << std::endl;
std::cout << oconv.str();
return EXIT_FAILURE;
}
return 0;
return EXIT_SUCCESS;
}
......@@ -6,6 +6,8 @@
// Copyright (c) 2015 Inria. All rights reserved.
//
#include <cstdlib>
#include "Utilities/Exceptions/PrintAndAbort.hpp"
#include "Core/InitHappyHeart.hpp"
......@@ -51,7 +53,8 @@ int main(int argc, char ** argv)
oconv << "Exception caught from InitHappyHeart<InputParameterList>: " << e.what() << std::endl;
std::cout << oconv.str();
return EXIT_FAILURE;
}
return 0;
return EXIT_SUCCESS;
}
......@@ -6,6 +6,8 @@
// Copyright (c) 2015 Inria. All rights reserved.
//
#include <cstdlib>
#include "Utilities/Exceptions/PrintAndAbort.hpp"
#include "Utilities/TimeKeep/TimeKeep.hpp"
......@@ -53,7 +55,9 @@ int main(int argc, char ** argv)
oconv << "Exception caught from InitHappyHeart<InputParameterList>: " << e.what() << std::endl;
std::cout << oconv.str();
return EXIT_FAILURE;
}
return 0;
return EXIT_SUCCESS;
}
......@@ -5,6 +5,7 @@
// Created by Gautier Bureau on 01/12/15.
// Copyright © 2015 Inria. All rights reserved.
//
#include <cstdlib>
#include "Utilities/Exceptions/PrintAndAbort.hpp"
......@@ -51,8 +52,10 @@ int main(int argc, char ** argv)
oconv << "Exception caught from InitHappyHeart<InputParameterList>: " << e.what() << std::endl;
std::cout << oconv.str();
return EXIT_FAILURE;
}
return 0;
return EXIT_SUCCESS;
}
......@@ -6,6 +6,8 @@
// Copyright (c) 2015 Inria. All rights reserved.
//
#include <cstdlib>
#include "Utilities/Exceptions/PrintAndAbort.hpp"
#include "Core/InitHappyHeart.hpp"
......@@ -51,8 +53,9 @@ int main(int argc, char ** argv)
oconv << "Exception caught from InitHappyHeart<InputParameterList>: " << e.what() << std::endl;
std::cout << oconv.str();
return EXIT_FAILURE;
}
return 0;
return EXIT_SUCCESS;
}
......@@ -6,6 +6,8 @@
// Copyright © 2015 Inria. All rights reserved.
//
#include <cstdlib>
#include "Utilities/Exceptions/PrintAndAbort.hpp"
#include "Core/InitHappyHeart.hpp"
......@@ -51,8 +53,10 @@ int main(int argc, char ** argv)
oconv << "Exception caught from InitHappyHeart<InputParameterList>: " << e.what() << std::endl;
std::cout << oconv.str();
return EXIT_FAILURE;
}
return 0;
return EXIT_SUCCESS;
}
......@@ -6,6 +6,8 @@
// Copyright © 2015 Inria. All rights reserved.
//
#include <cstdlib>
#include "Utilities/Exceptions/PrintAndAbort.hpp"
#include "Core/InitHappyHeart.hpp"
......@@ -51,8 +53,9 @@ int main(int argc, char ** argv)
oconv << "Exception caught from InitHappyHeart<InputParameterList>: " << e.what() << std::endl;
std::cout << oconv.str();
return EXIT_FAILURE;
}
return 0;
return EXIT_SUCCESS;
}
......@@ -7,6 +7,7 @@
//
#include <iostream>
#include <cstdlib>
#include "Utilities/Exceptions/PrintAndAbort.hpp"
......@@ -90,12 +91,11 @@ int main(int argc, char** argv)
{
std::ostringstream oconv;
oconv << "Exception caught from InitHappyHeart<InputParameterList>: " << e.what() << std::endl;
std::cout << oconv.str();
return EXIT_FAILURE;
}
return 0;
return EXIT_SUCCESS;
}
......@@ -5,7 +5,7 @@
// Created by Sebastien Gilles on 12/6/12.
// Copyright 2012 INRIA. All rights reserved.
//
#include <cstdlib>
#include <iostream>
#include <fstream>
......
......@@ -8,7 +8,7 @@
#include <iostream>
#include <sstream>
#include <cstdlib>
#include "Geometry/GeometricMeshRegion.hpp"
......@@ -68,9 +68,8 @@ int main(int argc, char** argv)
{
std::cout << "EXCEPTION CAUGHT" << std::endl;
std::cout << e.what() << std::endl;
return EXIT_FAILURE;
}
std::cout << "SUCCESS!" << std::endl;
return EXIT_SUCCESS;
}
......@@ -6,7 +6,7 @@
// Copyright (c) 2014 Inria. All rights reserved.
//
#include <cstdlib>
#include <iostream>
#include <fstream>
......
......@@ -6,6 +6,8 @@
// Copyright (c) 2014 Inria. All rights reserved.
//
#include <cstdlib>
#include "Utilities/Exceptions/PrintAndAbort.hpp"
#include "Core/InitHappyHeart.hpp"
......@@ -111,8 +113,10 @@ int main(int argc, char * argv[])
oconv << "Exception caught from InitHappyHeart<InputParameterList>: " << e.what() << std::endl;
std::cout << oconv.str();
return EXIT_FAILURE;
}
return 0;
return EXIT_SUCCESS;
}
......@@ -6,6 +6,8 @@
// Copyright (c) 2015 Inria. All rights reserved.
//
#include <cstdlib>
#include "Utilities/Exceptions/PrintAndAbort.hpp"
#include "Core/InitHappyHeart.hpp"
......@@ -51,8 +53,9 @@ int main(int argc, char ** argv)
oconv << "Exception caught from InitHappyHeart<InputParameterList>: " << e.what() << std::endl;
std::cout << oconv.str();
return EXIT_FAILURE;
}
return 0;
return EXIT_SUCCESS;
}
......@@ -6,6 +6,8 @@
// Copyright (c) 2015 Inria. All rights reserved.
//
#include <cstdlib>
#include "Utilities/Exceptions/PrintAndAbort.hpp"
#include "Core/InitHappyHeart.hpp"
......@@ -51,8 +53,9 @@ int main(int argc, char ** argv)
oconv << "Exception caught from InitHappyHeart<InputParameterList>: " << e.what() << std::endl;
std::cout << oconv.str();
return EXIT_FAILURE;
}
return 0;
return EXIT_SUCCESS;
}
......@@ -6,6 +6,8 @@
// Copyright (c) 2015 Inria. All rights reserved.
//
#include <cstdlib>
#include "Utilities/Exceptions/PrintAndAbort.hpp"
#include "Core/InitHappyHeart.hpp"
......@@ -51,8 +53,9 @@ int main(int argc, char ** argv)
oconv << "Exception caught from InitHappyHeart<InputParameterList>: " << e.what() << std::endl;
std::cout << oconv.str();
return EXIT_FAILURE;
}
return 0;
return EXIT_SUCCESS;
}
......@@ -6,6 +6,7 @@
//
//
#include <cstdlib>
#include <iostream>
#include "Utilities/Exceptions/PrintAndAbort.hpp"
......@@ -67,9 +68,10 @@ int main(int argc, char ** argv)
std::ostringstream oconv;
oconv << "Exception caught from InitHappyHeart<InputParameterList>: " << e.what() << std::endl;
std::cout << oconv.str();
return EXIT_FAILURE;
}
return 0;
return EXIT_SUCCESS;
}
......
......@@ -51,8 +51,9 @@ int main(int argc, char ** argv)
oconv << "Exception caught from InitHappyHeart<InputParameterList>: " << e.what() << std::endl;
std::cout << oconv.str();
return EXIT_FAILURE;
}
return 0;
return EXIT_SUCCESS;
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment