Skip to content

Commit

Permalink
[tests] Fix MTLResidencySet tests on macOS Sequoia. (#21662)
Browse files Browse the repository at this point in the history
  • Loading branch information
rolfbjarne authored Nov 20, 2024
1 parent 4681428 commit 06d5fc8
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tests/monotouch-test/Metal/MTLResidencySetTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -41,14 +41,14 @@ public void AddOrRemoveAllocations ()
Assert.IsNotNull (residencySet, "ResidencySet #1");

residencySet.AddAllocations (heap);
Assert.AreEqual (1, residencySet.AllocationCount, "AllocationCount #1");
Assert.AreEqual (1, (int) residencySet.AllocationCount, "AllocationCount #1");
residencySet.RemoveAllocations (heap);
Assert.AreEqual (0, residencySet.AllocationCount, "AllocationCount #2");
Assert.AreEqual (0, (int) residencySet.AllocationCount, "AllocationCount #2");

residencySet.AddAllocations (new IMTLAllocation [] { heap });
Assert.AreEqual (1, residencySet.AllocationCount, "AllocationCount #3");
Assert.AreEqual (1, (int) residencySet.AllocationCount, "AllocationCount #3");
residencySet.RemoveAllocations (new IMTLAllocation [] { heap });
Assert.AreEqual (0, residencySet.AllocationCount, "AllocationCount #4");
Assert.AreEqual (0, (int) residencySet.AllocationCount, "AllocationCount #4");
}
}
}
Expand Down

6 comments on commit 06d5fc8

@vs-mobiletools-engineering-service2

This comment was marked as outdated.

@vs-mobiletools-engineering-service2

This comment was marked as outdated.

@vs-mobiletools-engineering-service2

This comment was marked as outdated.

@vs-mobiletools-engineering-service2

This comment was marked as outdated.

@vs-mobiletools-engineering-service2

This comment was marked as outdated.

@vs-mobiletools-engineering-service2

This comment was marked as outdated.

Please sign in to comment.