Skip to content

Commit

Permalink
Change initial GetInfo assert to get ref count is >= 1.
Browse files Browse the repository at this point in the history
  • Loading branch information
martygrant committed Nov 7, 2024
1 parent f49cc0b commit a64c93f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion test/conformance/virtual_memory/urPhysicalMemRelease.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ TEST_P(urPhysicalMemReleaseTest, Success) {
ASSERT_SUCCESS(
urPhysicalMemGetInfo(physical_mem, UR_PHYSICAL_MEM_INFO_REFERENCE_COUNT,
sizeof(referenceCount), &referenceCount, nullptr));
ASSERT_EQ(referenceCount, 1);
ASSERT_GE(1, referenceCount);

ASSERT_SUCCESS(urPhysicalMemRetain(physical_mem));
ASSERT_SUCCESS(
Expand Down
2 changes: 1 addition & 1 deletion test/conformance/virtual_memory/urPhysicalMemRetain.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ TEST_P(urPhysicalMemRetainTest, Success) {
ASSERT_SUCCESS(
urPhysicalMemGetInfo(physical_mem, UR_PHYSICAL_MEM_INFO_REFERENCE_COUNT,
sizeof(referenceCount), &referenceCount, nullptr));
ASSERT_EQ(referenceCount, 1);
ASSERT_GE(1, referenceCount);

ASSERT_SUCCESS(urPhysicalMemRetain(physical_mem));
ASSERT_SUCCESS(
Expand Down

0 comments on commit a64c93f

Please sign in to comment.