From f855a6fbd1a9c5f418c97bc9196ec6aeebb21d61 Mon Sep 17 00:00:00 2001 From: Mateusz Jablonski Date: Thu, 29 Feb 2024 09:40:16 +0000 Subject: [PATCH] test: remove not needed logs from tests output Signed-off-by: Mateusz Jablonski --- .../sources/debugger/windows/test_l0_debugger_windows.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/level_zero/core/test/unit_tests/sources/debugger/windows/test_l0_debugger_windows.cpp b/level_zero/core/test/unit_tests/sources/debugger/windows/test_l0_debugger_windows.cpp index d3514d4465..b9eb25cd00 100644 --- a/level_zero/core/test/unit_tests/sources/debugger/windows/test_l0_debugger_windows.cpp +++ b/level_zero/core/test/unit_tests/sources/debugger/windows/test_l0_debugger_windows.cpp @@ -227,7 +227,6 @@ TEST_F(L0DebuggerWindowsTest, givenProgramDebuggingEnabledAndDebugAttachAvailabl TEST_F(L0DebuggerWindowsTest, givenProgramDebuggingEnabledAndDebugAttachNotAvailableWhenInitializingDriverThenErrorIsPrintedButNotReturned) { DebugManagerStateRestore restorer; - NEO::debugManager.flags.PrintDebugMessages.set(1); auto executionEnvironment = new NEO::ExecutionEnvironment(); executionEnvironment->prepareRootDeviceEnvironments(1); @@ -256,9 +255,11 @@ TEST_F(L0DebuggerWindowsTest, givenProgramDebuggingEnabledAndDebugAttachNotAvail ::testing::internal::CaptureStderr(); + NEO::debugManager.flags.PrintDebugMessages.set(1); ze_result_t result = driverHandle->initialize(std::move(devices)); EXPECT_EQ(ZE_RESULT_SUCCESS, result); + NEO::debugManager.flags.PrintDebugMessages.set(0); auto output = testing::internal::GetCapturedStderr(); EXPECT_EQ(std::string("Debug mode is not enabled in the system.\n"), output);