0 port numbers is also ok

This commit is contained in:
Klaus Reimer 2018-10-08 20:06:38 +02:00
parent ee67671559
commit 0172799fcb
1 changed files with 1 additions and 1 deletions

View File

@ -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());
}