File tree 1 file changed +6
-7
lines changed
1 file changed +6
-7
lines changed Original file line number Diff line number Diff line change 15
15
using namespace std ::chrono;
16
16
17
17
ppc::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);
18
24
functions_order_.clear ();
19
25
}
20
26
@@ -86,13 +92,6 @@ bool ppc::core::Task::IsFullPipelineStage() {
86
92
}
87
93
88
94
ppc::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
-
96
95
if (!functions_order_.empty () || !was_worked_) {
97
96
std::terminate ();
98
97
} else {
You can’t perform that action at this time.
0 commit comments