File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1515using namespace std ::chrono;
1616
1717ppc::core::Task::Task (StateOfTesting state_of_testing) : state_of_testing_(state_of_testing) {
18+ auto custom_terminate = []() {
19+ std::cerr << " ORDER OF FUNCTIONS IS NOT RIGHT! \n "
20+ " Expected - \" Validation\" , \" PreProcessing\" , \" Run\" , \" PostProcessing\" \n " ;
21+ std::exit (404 );
22+ };
23+ std::set_terminate (custom_terminate);
1824 functions_order_.clear ();
1925}
2026
@@ -86,13 +92,6 @@ bool ppc::core::Task::IsFullPipelineStage() {
8692}
8793
8894ppc::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-
9695 if (!functions_order_.empty () || !was_worked_) {
9796 std::terminate ();
9897 } else {
You can’t perform that action at this time.
0 commit comments