@@ -394,8 +394,6 @@ TEST(IoctlHelperXeTest, givenIoctlHelperXeWhenCallingAnyMethodThenDummyValueIsRe
394394
395395 EXPECT_TRUE (xeIoctlHelper->completionFenceExtensionSupported (true ));
396396
397- EXPECT_EQ (0ull , xeIoctlHelper->getFlagsForVmBind (true , true , true , true ));
398-
399397 uint32_t fabricId = 0 , latency = 0 , bandwidth = 0 ;
400398 EXPECT_FALSE (xeIoctlHelper->getFabricLatency (fabricId, latency, bandwidth));
401399}
@@ -415,6 +413,15 @@ TEST(IoctlHelperXeTest, whenGettingFlagsForVmCreateThenPropertValueIsReturned) {
415413 EXPECT_EQ (static_cast <uint32_t >(DRM_XE_VM_CREATE_FLAG_LR_MODE | DRM_XE_VM_CREATE_FLAG_SCRATCH_PAGE), xeIoctlHelper->getFlagsForVmCreate (false , false , false ));
416414}
417415
416+ TEST (IoctlHelperXeTest, whenGettingFlagsForVmBindThenPropertValueIsReturned) {
417+ auto executionEnvironment = std::make_unique<MockExecutionEnvironment>();
418+ DrmMock drm{*executionEnvironment->rootDeviceEnvironments [0 ]};
419+ auto xeIoctlHelper = std::make_unique<IoctlHelperXe>(drm);
420+
421+ EXPECT_EQ (static_cast <uint64_t >(DRM_XE_VM_BIND_FLAG_DUMPABLE), xeIoctlHelper->getFlagsForVmBind (true , true , true , true ));
422+ EXPECT_EQ (static_cast <uint64_t >(0 ), xeIoctlHelper->getFlagsForVmBind (false , true , true , true ));
423+ }
424+
418425TEST (IoctlHelperXeTest, whenGettingIoctlRequestValueThenPropertValueIsReturned) {
419426 auto executionEnvironment = std::make_unique<MockExecutionEnvironment>();
420427 DrmMock drm{*executionEnvironment->rootDeviceEnvironments [0 ]};
0 commit comments