Skip to content

Commit

Permalink
Update error message
Browse files Browse the repository at this point in the history
  • Loading branch information
lafoletc committed Nov 7, 2020
1 parent 8fd13c1 commit 12fc25a
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions contrib/platform/test/com/sun/jna/platform/unix/X11Test.java
Original file line number Diff line number Diff line change
Expand Up @@ -124,8 +124,7 @@ public void testXQueryExtension() {
// check if the XTEST extension is available
if (X11.INSTANCE.XQueryExtension(display, "XTEST", opcode, first_event, first_error)) {
// Opcode for extension should be assigned in range 128-255
Assert.assertTrue("Wrong value for opcode returned", opcode.getValue() >= 128);
Assert.assertTrue("Wrong value for opcode returned", opcode.getValue() <= 255);
Assert.assertTrue("Value for opcode should be between 128-255.", (opcode.getValue() & 0x80) > 0);
// No first_event defined for XTEST
Assert.assertEquals("Wrong value for first_event returned", 0, first_event.getValue());
// No first_error defined for XTEST
Expand Down

0 comments on commit 12fc25a

Please sign in to comment.