mirror of https://github.com/rusefi/usb4java.git
0 port numbers is also ok
This commit is contained in:
parent
ee67671559
commit
0172799fcb
|
@ -193,7 +193,7 @@ public class LibUsbDeviceTest
|
|||
assumeNotNull(this.device);
|
||||
final ByteBuffer path = BufferUtils.allocateByteBuffer(8);
|
||||
final int result = LibUsb.getPortNumbers(this.device, path);
|
||||
assertTrue(result > 0);
|
||||
assertTrue(result >= 0);
|
||||
assertTrue(result <= path.capacity());
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue