Skip to content

Commit 24ac74c

Browse files
committed
fix DeviceTest.checkParent
1 parent 3cedcfc commit 24ac74c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Core/src/test/java/com/nativelibs4java/opencl/DeviceTest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,9 +94,9 @@ public void testSplitByAffinity() {
9494
}
9595

9696
private void checkParent(CLDevice parent, CLDevice child) {
97-
assertSame(device, child.getParent());
97+
assertSame(parent, child.getParent());
9898
// Force a get info CL_DEVICE_PARENT_DEVICE.
99-
assertSame(device, new CLDevice(device.getPlatform(), null, child.getEntity(), false).getParent());
99+
assertEquals(parent, new CLDevice(device.getPlatform(), null, child.getEntity(), false).getParent());
100100
}
101101

102102
}

0 commit comments

Comments
 (0)