Skip to content

Commit c445e13

Browse files
Merge pull request #2182 from omarahmed1111/fix-success-with-unowned-native-handle-tests
Fix successWithUnOwnedNativeHandle tests
2 parents 53c461b + a8b87e7 commit c445e13

8 files changed

+0
-31
lines changed
Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,2 @@
11
{{NONDETERMINISTIC}}
2-
urContextCreateWithNativeHandleTest.SuccessWithUnOwnedNativeHandle/Intel_R__oneAPI_Unified_Runtime_over_Level_Zero___{{.*}}_
32
urContextSetExtendedDeleterTest.Success/Intel_R__oneAPI_Unified_Runtime_over_Level_Zero___{{.*}}_

test/conformance/context/urContextCreateWithNativeHandle.cpp

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -46,11 +46,6 @@ TEST_P(urContextCreateWithNativeHandleTest, SuccessWithOwnedNativeHandle) {
4646
UUR_ASSERT_SUCCESS_OR_UNSUPPORTED(urContextCreateWithNativeHandle(
4747
native_context, adapter, 1, &device, &props, &ctx));
4848
ASSERT_NE(ctx, nullptr);
49-
50-
uint32_t ref_count = 0;
51-
ASSERT_SUCCESS(urContextGetInfo(ctx, UR_CONTEXT_INFO_REFERENCE_COUNT,
52-
sizeof(uint32_t), &ref_count, nullptr));
53-
ASSERT_EQ(ref_count, 1);
5449
}
5550

5651
TEST_P(urContextCreateWithNativeHandleTest, SuccessWithUnOwnedNativeHandle) {
@@ -66,13 +61,6 @@ TEST_P(urContextCreateWithNativeHandleTest, SuccessWithUnOwnedNativeHandle) {
6661
UUR_ASSERT_SUCCESS_OR_UNSUPPORTED(urContextCreateWithNativeHandle(
6762
native_context, adapter, 1, &device, &props, &ctx));
6863
ASSERT_NE(ctx, nullptr);
69-
70-
uint32_t ref_count = 0;
71-
ASSERT_SUCCESS(urContextGetInfo(ctx, UR_CONTEXT_INFO_REFERENCE_COUNT,
72-
sizeof(uint32_t), &ref_count, nullptr));
73-
ASSERT_EQ(ref_count, 2);
74-
75-
ASSERT_SUCCESS(urContextRelease(ctx));
7664
}
7765

7866
TEST_P(urContextCreateWithNativeHandleTest, InvalidNullHandleAdapter) {
Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,2 @@
11
{{NONDETERMINISTIC}}
2-
urDeviceCreateWithNativeHandleTest.SuccessWithUnOwnedNativeHandle
32
{{OPT}}urDeviceGetGlobalTimestampTest.SuccessSynchronizedTime
Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,2 @@
11
{{NONDETERMINISTIC}}
2-
urDeviceCreateWithNativeHandleTest.SuccessWithUnOwnedNativeHandle
32
{{OPT}}urDeviceGetGlobalTimestampTest.SuccessSynchronizedTime
Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,2 @@
11
{{NONDETERMINISTIC}}
2-
urDeviceCreateWithNativeHandleTest.SuccessWithUnOwnedNativeHandle
32
{{OPT}}urDeviceGetGlobalTimestampTest.SuccessSynchronizedTime
Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
11
{{NONDETERMINISTIC}}
2-
urDeviceCreateWithNativeHandleTest.SuccessWithUnOwnedNativeHandle
32
{{OPT}}urDeviceGetGlobalTimestampTest.SuccessSynchronizedTime
43
{{OPT}}urDeviceGetInfoTest.Success/UR_DEVICE_INFO_GLOBAL_MEM_FREE

test/conformance/device/device_adapter_opencl.match

Lines changed: 0 additions & 2 deletions
This file was deleted.

test/conformance/device/urDeviceCreateWithNativeHandle.cpp

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -43,12 +43,6 @@ TEST_F(urDeviceCreateWithNativeHandleTest, SuccessWithOwnedNativeHandle) {
4343
UUR_ASSERT_SUCCESS_OR_UNSUPPORTED(urDeviceCreateWithNativeHandle(
4444
native_handle, adapter, &props, &dev));
4545
ASSERT_NE(dev, nullptr);
46-
47-
uint32_t ref_count = 0;
48-
ASSERT_SUCCESS(urDeviceGetInfo(dev, UR_DEVICE_INFO_REFERENCE_COUNT,
49-
sizeof(uint32_t), &ref_count, nullptr));
50-
51-
ASSERT_EQ(ref_count, 1);
5246
}
5347
}
5448

@@ -66,12 +60,6 @@ TEST_F(urDeviceCreateWithNativeHandleTest, SuccessWithUnOwnedNativeHandle) {
6660
UUR_ASSERT_SUCCESS_OR_UNSUPPORTED(urDeviceCreateWithNativeHandle(
6761
native_handle, adapter, &props, &dev));
6862
ASSERT_NE(dev, nullptr);
69-
70-
uint32_t ref_count = 0;
71-
ASSERT_SUCCESS(urDeviceGetInfo(dev, UR_DEVICE_INFO_REFERENCE_COUNT,
72-
sizeof(uint32_t), &ref_count, nullptr));
73-
74-
ASSERT_EQ(ref_count, 2);
7563
}
7664
}
7765

0 commit comments

Comments
 (0)