fix: Reduce code duplicity by reusing closeConnection

Related-To: NEO-11188
Signed-off-by: Jitendra Sharma <jitendra.sharma@intel.com>
This commit is contained in:
Jitendra Sharma
2024-04-18 14:54:30 +00:00
committed by Compute-Runtime-Automation
parent 8c1f0836ae
commit c5a76cac3a
7 changed files with 38 additions and 56 deletions

View File

@@ -214,6 +214,7 @@ TEST_F(DebugApiLinuxTestXe, GivenDebugSessionWhenClosingConnectionThenSysCallClo
EXPECT_EQ(1u, NEO::SysCalls::closeFuncCalled);
EXPECT_EQ(10, NEO::SysCalls::closeFuncArgPassed);
EXPECT_FALSE(session->internalEventThread.threadActive);
EXPECT_FALSE(session->asyncThread.threadActive);
NEO::SysCalls::closeFuncCalled = 0;
NEO::SysCalls::closeFuncArgPassed = 0;