test: remove xe debugger from test that is executed without xe debugger

Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
This commit is contained in:
Mateusz Jablonski
2024-07-11 14:49:32 +00:00
committed by Compute-Runtime-Automation
parent 7657498c53
commit e2dcd8909c

View File

@@ -1462,15 +1462,11 @@ TEST(IoctlHelperXeTest, givenDisabledFtrMultiTileArchWhenCreatingEngineInfoThenM
}
}
struct IoctlHelperXeFenceWaitTest : public ::testing::TestWithParam<bool> {};
using IoctlHelperXeFenceWaitTest = ::testing::Test;
TEST_P(IoctlHelperXeFenceWaitTest, whenCallingVmBindThenWaitUserFenceIsCalled) {
TEST_F(IoctlHelperXeFenceWaitTest, whenCallingVmBindThenWaitUserFenceIsCalled) {
DebugManagerStateRestore restorer;
auto debuggingEnabled = GetParam();
auto executionEnvironment = std::make_unique<MockExecutionEnvironment>();
if (debuggingEnabled) {
executionEnvironment->setDebuggingMode(DebuggingMode::online);
}
auto drm = DrmMockXe::create(*executionEnvironment->rootDeviceEnvironments[0]);
auto xeIoctlHelper = static_cast<MockIoctlHelperXe *>(drm->getIoctlHelper());
@@ -1501,7 +1497,7 @@ TEST_P(IoctlHelperXeFenceWaitTest, whenCallingVmBindThenWaitUserFenceIsCalled) {
EXPECT_EQ(1u, drm->syncInputs.size());
EXPECT_EQ(1u, drm->waitUserFenceInputs.size());
auto expectedMask = std::numeric_limits<uint64_t>::max();
auto expectedTimeout = debuggingEnabled ? -1 : 1000000000ll;
auto expectedTimeout = 1000000000ll;
{
auto &sync = drm->syncInputs[0];
@@ -1547,10 +1543,6 @@ TEST_P(IoctlHelperXeFenceWaitTest, whenCallingVmBindThenWaitUserFenceIsCalled) {
}
}
INSTANTIATE_TEST_SUITE_P(,
IoctlHelperXeFenceWaitTest,
::testing::Bool());
TEST(IoctlHelperXeTest, givenVmBindWaitUserFenceTimeoutWhenCallingVmBindThenWaitUserFenceIsCalledWithSpecificTimeout) {
DebugManagerStateRestore restorer;
debugManager.flags.VmBindWaitUserFenceTimeout.set(5000000000ll);