@@ -2519,6 +2519,32 @@ HWTEST_F(CommandStreamReceiverTest, givenMultipleActivePartitionsWhenWaitLogIsEn
2519
2519
EXPECT_STREQ (expectedOutput.str ().c_str (), output.c_str ());
2520
2520
}
2521
2521
2522
+ HWTEST_F (CommandStreamReceiverTest, givenAubCsrWhenLogWaitingForCompletionEnabledThenSkipFullPrint) {
2523
+ DebugManagerStateRestore restorer;
2524
+ debugManager.flags .LogWaitingForCompletion .set (true );
2525
+
2526
+ auto &csr = pDevice->getUltCommandStreamReceiver <FamilyType>();
2527
+ csr.commandStreamReceiverType = NEO::CommandStreamReceiverType::aub;
2528
+
2529
+ WaitParams waitParams;
2530
+ waitParams.waitTimeout = std::numeric_limits<int64_t >::max ();
2531
+
2532
+ testing::internal::CaptureStdout ();
2533
+
2534
+ WaitStatus status = csr.waitForCompletionWithTimeout (waitParams, 0 );
2535
+ EXPECT_EQ (WaitStatus::ready, status);
2536
+
2537
+ std::string output = testing::internal::GetCapturedStdout ();
2538
+
2539
+ std::string expectedOutput1 = " Aub dump wait for task count" ;
2540
+ std::string expectedOutput2 = " Aub dump wait completed" ;
2541
+ std::string notExpectedOutput = " Waiting for task count" ;
2542
+
2543
+ EXPECT_NE (std::string::npos, output.find (expectedOutput1));
2544
+ EXPECT_NE (std::string::npos, output.find (expectedOutput2));
2545
+ EXPECT_EQ (std::string::npos, output.find (notExpectedOutput));
2546
+ }
2547
+
2522
2548
TEST_F (CommandStreamReceiverTest, givenPreambleFlagIsSetWhenGettingFlagStateThenExpectCorrectState) {
2523
2549
EXPECT_FALSE (commandStreamReceiver->getPreambleSetFlag ());
2524
2550
commandStreamReceiver->setPreambleSetFlag (true );
0 commit comments