xserver-multidpi/test/xi2
Alan Coopersmith da887726ee Use unique display name for each xi2 test program [v3]
make -j 8 check was sporadically failing in different xi2 tests.
After adding the asserts in the previous commit to catch xkb failure
it became easier to catch the failures and see that multiple tests
were running at once trying to write to /tmp/server-(null).xkm and
then delete it, and interfering with each other.

Putting a unique string into the display variable let them each write
to their own file and not interfere with others.

v2: Fix Linux bits:

  Add #include <errno.h> to get a declaration of
  program_invocation_name on Linux.

  Use only the last portion of the pathname so that the resulting
  display name doesn't contain any slashes.

v3: use program_invocation_short_name on Linux

  This is the same as program_invocation_name, except is has
  stripped off any path prefix.

Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Reviewed-by: Peter Hutterer <peter.hutterer@who-t.net>
Reviewed-by: Adam Jackson <ajax@redhat.com>
Signed-off-by: Keith Packard <keithp@keithp.com>
2014-10-09 14:15:45 +02:00
..
.gitignore test: add new test cases to .gitignore 2012-03-04 20:01:29 -08:00
Makefile.am Replace INCLUDES with AM_CPPFLAGS 2013-08-06 13:08:13 +10:00
protocol-common.c Use unique display name for each xi2 test program [v3] 2014-10-09 14:15:45 +02:00
protocol-common.h test/xi2: Clean up -Wshadow warnings 2014-01-22 19:56:32 -08:00
protocol-eventconvert.c Merge remote-tracking branch 'yselkowitz/master' 2012-12-19 12:22:03 -08:00
protocol-xigetclientpointer.c Introduce a consistent coding style 2012-03-21 13:54:42 -07:00
protocol-xigetselectedevents.c Replace 'pointer' type with 'void *' 2014-01-12 10:24:11 -08:00
protocol-xipassivegrabdevice.c Xi: fix modifier offset in XIPassiveGrab swapping function 2014-01-25 18:54:16 +10:00
protocol-xiquerydevice.c test/xi2: Clean up -Wshadow warnings 2014-01-22 19:56:32 -08:00
protocol-xiquerypointer.c test: fix redundant declaration of "BadDevice" 2012-05-16 10:59:39 +10:00
protocol-xiqueryversion.c test/xi2: Clean up -Wshadow warnings 2014-01-22 19:56:32 -08:00
protocol-xiselectevents.c Fix formatting of address operators 2012-12-05 18:09:48 -06:00
protocol-xisetclientpointer.c test: fix redundant declaration of "BadDevice" 2012-05-16 10:59:39 +10:00
protocol-xiwarppointer.c test/xi2: fix compiler warning 2012-12-21 13:04:09 +10:00
xi2.c dix: split xi2_mask_isset into a per-device function 2012-12-12 17:25:16 +10:00