File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 33#include < algorithm>
44#include < chrono>
55#include < cstddef>
6+ #include < cstdlib>
67#include < exception>
78#include < functional>
89#include < iomanip>
1516using namespace std ::chrono;
1617
1718ppc::core::Task::Task (StateOfTesting state_of_testing) : state_of_testing_(state_of_testing) {
19+ auto custom_terminate = []() {
20+ std::cerr << " ORDER OF FUNCTIONS IS NOT RIGHT! \n "
21+ " Expected - \" Validation\" , \" PreProcessing\" , \" Run\" , \" PostProcessing\" \n " ;
22+ std::exit (404 );
23+ };
24+ std::set_terminate (custom_terminate);
1825 functions_order_.clear ();
1926}
2027
@@ -86,13 +93,6 @@ bool ppc::core::Task::IsFullPipelineStage() {
8693}
8794
8895ppc::core::Task::~Task () {
89- auto custom_terminate = []() {
90- std::cerr << " ORDER OF FUNCTIONS IS NOT RIGHT! \n "
91- " Expected - \" Validation\" , \" PreProcessing\" , \" Run\" , \" PostProcessing\" \n " ;
92- std::exit (404 );
93- };
94- std::set_terminate (custom_terminate);
95-
9696 if (!functions_order_.empty () || !was_worked_) {
9797 std::terminate ();
9898 } else {
You can’t perform that action at this time.
0 commit comments