Skip to content

Commit 8fd08e8

Browse files
authored
Merge pull request #1680 from frasercrmck/fix-up-usm-free-test
[CTS][NFC] Reuse variable for allocation size
2 parents 755a1e7 + 3025abd commit 8fd08e8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/conformance/usm/urUSMFree.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ TEST_P(urUSMFreeTest, SuccessHostAlloc) {
4242
void *ptr = nullptr;
4343
size_t allocation_size = sizeof(int);
4444
ASSERT_SUCCESS(
45-
urUSMHostAlloc(context, nullptr, nullptr, sizeof(int), &ptr));
45+
urUSMHostAlloc(context, nullptr, nullptr, allocation_size, &ptr));
4646

4747
ur_event_handle_t event = nullptr;
4848
uint8_t pattern = 0;

0 commit comments

Comments
 (0)