Skip to content

Commit 12fc25a

Browse files
committed
Update error message
1 parent 8fd13c1 commit 12fc25a

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

contrib/platform/test/com/sun/jna/platform/unix/X11Test.java

+1-2
Original file line numberDiff line numberDiff line change
@@ -124,8 +124,7 @@ public void testXQueryExtension() {
124124
// check if the XTEST extension is available
125125
if (X11.INSTANCE.XQueryExtension(display, "XTEST", opcode, first_event, first_error)) {
126126
// Opcode for extension should be assigned in range 128-255
127-
Assert.assertTrue("Wrong value for opcode returned", opcode.getValue() >= 128);
128-
Assert.assertTrue("Wrong value for opcode returned", opcode.getValue() <= 255);
127+
Assert.assertTrue("Value for opcode should be between 128-255.", (opcode.getValue() & 0x80) > 0);
129128
// No first_event defined for XTEST
130129
Assert.assertEquals("Wrong value for first_event returned", 0, first_event.getValue());
131130
// No first_error defined for XTEST

0 commit comments

Comments
 (0)