File tree Expand file tree Collapse file tree
modules/core/performance/tests Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -314,3 +314,17 @@ TEST(PerfTest, GetStringParamNameTest) {
314314 EXPECT_EQ (GetStringParamName (ppc::core::PerfResults::kPipeline ), " pipeline" );
315315 EXPECT_EQ (GetStringParamName (ppc::core::PerfResults::kNone ), " none" );
316316}
317+
318+ TEST (TaskTest, Destructor_InvalidPipelineOrderTerminates_PartialPipeline) {
319+ testing::FLAGS_gtest_death_test_style = " threadsafe" ;
320+ auto test_func = [&] {
321+ struct BadTask : ppc::core::Task<int , int > {
322+ bool ValidationImpl () override { return true ; }
323+ bool PreProcessingImpl () override { return true ; }
324+ bool RunImpl () override { return true ; }
325+ bool PostProcessingImpl () override { return true ; }
326+ } task;
327+ task.Validation ();
328+ };
329+ ASSERT_DEATH_IF_SUPPORTED ({ test_func (); }, " ORDER OF FUNCTIONS IS NOT RIGHT" );
330+ }
You can’t perform that action at this time.
0 commit comments