xserver-multidpi/test/xi2
Chase Douglas a28ff2cf92 test/xi2: Really fix infinite loop in test_convert_XITouchOwnershipEvent
long i;
for (i = 1; ; i <<= 1)
  if (i == (1 << 31))
    break;

(1 << 31) is compiled as an int, and thus is equal to -2147483648. We
are trying to compare it against a long, which on 64-bit machines is
2147483648. This results in an infinite loop.

Signed-off-by: Chase Douglas <chase.douglas@canonical.com>
Signed-off-by: Keith Packard <keithp@keithp.com>
2011-12-23 13:18:10 -08:00
..
.gitignore Update .gitignore as new tests have been added 2011-06-22 10:45:25 -07:00
Makefile.am Add a new XI2Mask struct and a few helper functions. 2011-12-09 14:56:23 +10:00
protocol-common.c test: fix two more failing FP3232 tests 2011-10-27 08:41:08 +10:00
protocol-common.h test/xi2: remove duplicated include 2011-04-25 10:45:34 -07:00
protocol-eventconvert.c test/xi2: Really fix infinite loop in test_convert_XITouchOwnershipEvent 2011-12-23 13:18:10 -08:00
protocol-xigetclientpointer.c Use internal temp variable for swap macros 2011-09-21 17:12:04 -04:00
protocol-xigetselectedevents.c Use internal temp variable for swap macros 2011-09-21 17:12:04 -04:00
protocol-xipassivegrabdevice.c tests: update for touch support 2011-12-16 11:18:47 +10:00
protocol-xiquerydevice.c test: fix two more failing FP3232 tests 2011-10-27 08:41:08 +10:00
protocol-xiquerypointer.c Use internal temp variable for swap macros 2011-09-21 17:12:04 -04:00
protocol-xiqueryversion.c Use internal temp variable for swap macros 2011-09-21 17:12:04 -04:00
protocol-xiselectevents.c tests: update for touch support 2011-12-16 11:18:47 +10:00
protocol-xisetclientpointer.c Use internal temp variable for swap macros 2011-09-21 17:12:04 -04:00
protocol-xiwarppointer.c Use internal temp variable for swap macros 2011-09-21 17:12:04 -04:00
xi2.c Add a new XI2Mask struct and a few helper functions. 2011-12-09 14:56:23 +10:00