Skip to content

Commit 95a5ab3

Browse files
committed
Fix shadowing in USM pool test fixture, correct assertion in PoolRetain test.
1 parent 2620159 commit 95a5ab3

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

test/conformance/testing/include/uur/fixtures.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -635,7 +635,6 @@ struct urUSMPoolTest : urContextTest {
635635
UUR_RETURN_ON_FATAL_FAILURE(urContextTest::SetUp());
636636
ur_usm_pool_desc_t pool_desc{UR_STRUCTURE_TYPE_USM_POOL_DESC, nullptr,
637637
UR_USM_POOL_FLAG_ZERO_INITIALIZE_BLOCK};
638-
ur_usm_pool_handle_t pool = nullptr;
639638
ASSERT_SUCCESS(urUSMPoolCreate(this->context, &pool_desc, &pool));
640639
}
641640

test/conformance/usm/urUSMPoolRetain.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ TEST_P(urUSMPoolRetainTest, Success) {
2525
uint32_t afterRefCount = 0;
2626
ASSERT_SUCCESS(uur::GetObjectReferenceCount(pool, afterRefCount));
2727

28-
ASSERT_LT(afterRefCount, prevRefCount);
28+
ASSERT_LT(afterRefCount, refCount);
2929
}
3030

3131
TEST_P(urUSMPoolRetainTest, InvalidNullHandlePool) {

0 commit comments

Comments
 (0)