@@ -834,20 +834,18 @@ HWTEST2_F(CommandListCreate, whenContainsCooperativeKernelsIsCalledThenCorrectVa
834834 }
835835}
836836
837- HWTEST_F (CommandListCreate, whenCommandListIsResetThenPartitionCountIsReversedToOne ) {
837+ HWTEST_F (CommandListCreate, GivenSingleTileDeviceWhenCommandListIsResetThenPartitionCountIsReversedToOne ) {
838838 ze_result_t returnValue;
839839 std::unique_ptr<L0::CommandList> commandList (CommandList::create (productFamily,
840840 device,
841841 NEO::EngineGroupType::Compute,
842842 0u ,
843843 returnValue));
844844 EXPECT_EQ (ZE_RESULT_SUCCESS, returnValue);
845-
846- commandList->partitionCount = 2 ;
845+ EXPECT_EQ (1u , commandList->partitionCount );
847846
848847 returnValue = commandList->reset ();
849848 EXPECT_EQ (ZE_RESULT_SUCCESS, returnValue);
850-
851849 EXPECT_EQ (1u , commandList->partitionCount );
852850}
853851
@@ -856,13 +854,21 @@ using MultiTileImmediateCommandListTest = Test<MultiTileCommandListFixture<true,
856854HWTEST2_F (MultiTileImmediateCommandListTest, GivenMultiTileDeviceWhenCreatingImmediateCommandListThenExpectPartitionCountMatchTileCount, IsWithinXeGfxFamily) {
857855 EXPECT_EQ (2u , device->getNEODevice ()->getDeviceBitfield ().count ());
858856 EXPECT_EQ (2u , commandList->partitionCount );
857+
858+ auto returnValue = commandList->reset ();
859+ EXPECT_EQ (ZE_RESULT_SUCCESS, returnValue);
860+ EXPECT_EQ (2u , commandList->partitionCount );
859861}
860862
861863using MultiTileImmediateInternalCommandListTest = Test<MultiTileCommandListFixture<true , true >>;
862864
863865HWTEST2_F (MultiTileImmediateInternalCommandListTest, GivenMultiTileDeviceWhenCreatingInternalImmediateCommandListThenExpectPartitionCountEqualOne, IsWithinXeGfxFamily) {
864866 EXPECT_EQ (2u , device->getNEODevice ()->getDeviceBitfield ().count ());
865867 EXPECT_EQ (1u , commandList->partitionCount );
868+
869+ auto returnValue = commandList->reset ();
870+ EXPECT_EQ (ZE_RESULT_SUCCESS, returnValue);
871+ EXPECT_EQ (1u , commandList->partitionCount );
866872}
867873
868874HWTEST_F (CommandListCreate, WhenReservingSpaceThenCommandsAddedToBatchBuffer) {
0 commit comments