summaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2014-06-04autogen.sh: Honor NOCONFIGURE=1HEADmasterAlan Coopersmith1-1/+3
See http://people.gnome.org/~walters/docs/build-api.txt Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2014-06-04configure: Drop AM_MAINTAINER_MODEAlan Coopersmith2-3/+1
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
2014-03-21Drop use of perl's given/when constructPeter Harris1-4/+9
The perl mongers have retroactively marked this construct "experimental", five and a half years after it was marked stable. http://perldoc.perl.org/perl5180delta.html#The-smartmatch-family-of-features-are-now-experimental Acked-by: Peter Hutterer <peter.hutterer@who-t.net> Signed-off-by: Peter Harris <pharris@opentext.com>
2013-07-02XI/ChangePointerDevice: Check for XOpenDevice failuresPeter Harris1-0/+20
Signed-off-by: Peter Harris <pharris@opentext.com>
2013-07-02XI/ChangePointerDevice: Fix double-freePeter Harris1-28/+31
XCloseDevice frees the device parameter, even if it references an invalid device. Therefore, the device parameter must not be on the stack. Since xts5/XI does not clean up the devices created by Setup_Extension_DeviceInfo, it is safe to XCloseDevice "device". Reviewed-by: Peter Hutterer <peter.hutterer@who-t.net> Signed-off-by: Peter Harris <pharris@opentext.com>
2013-06-05XI/ChangeFeedbackControl: Always set fPeter Harris1-0/+21
XChangeFeedbackControl will SEGV if the last parameter is NULL. Signed-off-by: Peter Harris <pharris@opentext.com>
2013-06-05xts5/XI: Fix SEGV when double-freeing DisplayPeter Harris5-31/+4
Only XOpenDisplay pairs with XCloseDisplay. The Display pointer returned by opendisplay is self-closing. Signed-off-by: Peter Harris <pharris@opentext.com>
2013-06-04Xlib17/XGetDefaults: Install EnvXdefaultsPeter Harris1-0/+3
Signed-off-by: Peter Harris <pharris@opentext.com>
2013-06-03Write results directly to results directoryPeter Harris27-80/+154
If an installed xtest is run, the user does not normally have write access to the test directory. Writing intermediate files and results directly to the results directory avoids a number of spurious FAILs and UNRESOLVEDs. Reviewed-by: Jamey Sharp <jamey@minilop.net> Signed-off-by: Peter Harris <pharris@opentext.com>
2013-05-31Fix XSetWMSizeHints et al.Peter Harris5-18/+21
Xlib, since release 1.1.2, only transmits fields for which the corresponding flags bit is set (to avoid a potential information leak). Set the flags field to include all the fields to be tested. Signed-off-by: Peter Harris <pharris@opentext.com>
2013-05-31Disable ColormapNotify test if implicit colormapsPeter Harris1-0/+8
If the server supports more than one simultaneously installed colormap, it probably does implicit installation too. If the server implicitly installs the colormap when it is created, there will be no ColormapNotify when InstallColormap is called. In that case, the event count will be wrong, and the test will report FAIL even though it shouldn't. Signed-off-by: Peter Harris <pharris@opentext.com>
2013-05-31Fix automatic configuration of BackingStoresPeter Harris1-1/+9
xdpyinfo reports NO, WHEN MAPPED or YES, but XT_DOES_BACKING_STORE expects a 0, 1, or 2. Signed-off-by: Peter Harris <pharris@opentext.com>
2013-05-30XI: Fix random failures on LP64 platformsPeter Harris28-41/+42
It turns out that XID is a 'long' for historical reasons, but the XInput error macros expect a pointer-to-int. Signed-off-by: Peter Harris <pharris@opentext.com>
2013-05-30Fix pointer/int warnings in xts5/xim/response.cPeter Harris1-3/+3
psd->data.bitmap is never set, but it's better to make sure we never try to free() an XID. Signed-off-by: Peter Harris <pharris@opentext.com>
2013-05-29Add XInput sections to "all"Peter Harris1-0/+4
Signed-off-by: Peter Harris <pharris@opentext.com>
2013-04-24Xlib4: Fix XMapSubwindows test 9Peter Harris3-1/+171
XMapSubwindows-9 creates a number of overlapping sibling windows, then checks that a GetImage of each window is filled after processing all Expose events. This is invalid per the spec, as areas of a GetImage that are obscured by a sibling are undefined. In particular, current servers intentionally blank any area obscured by a sibling for security reasons. Change XMapSubwindows to only verify the parts of the GetImage that are not obscured by a sibling window. Signed-off-by: Peter Harris <pharris@opentext.com>
2013-02-19Remove pad adjustments from Xproto/GetImage/PutImagexts-0.99.1Peter Harris2-61/+11
GetImage adjusts the length field incorrectly, and PutImage does not adjust the length field at all. Since the only stored images are those from GetImage, it makes more sense to remove the pad code entirely than to fix it. Signed-off-by: Peter Harris <pharris@opentext.com> Tested-by: Aaron Plattner <aplattner@nvidia.com> Signed-off-by: Aaron Plattner <aplattner@nvidia.com>
2013-02-19Set XT_DISPLAYHOST for remote connectionsPeter Harris1-0/+8
Xlib3/XOpenDisplay may segfault if XT_DISPLAY is set and XT_DISPLAYHOST is not. Signed-off-by: Peter Harris <pharris@opentext.com> Tested-by: Aaron Plattner <aplattner@nvidia.com> Reviewed-by: Aaron Plattner <aplattner@nvidia.com> Signed-off-by: Aaron Plattner <aplattner@nvidia.com>
2013-02-07Use xorg-macros to drag in man page build dependenciesPeter Hutterer2-19/+10
And make sure to remove generated man page files during make clean. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net> [CLEANFILES and XORG_MACROS_VERSION fixed by aplattner@nvidia.com] Tested-by: Aaron Plattner <aplattner@nvidia.com> Reviewed-by: Aaron Plattner <aplattner@nvidia.com> Signed-off-by: Aaron Plattner <aplattner@nvidia.com>
2013-02-07Use AC_CONFIG_HEADERS to appease automake 1.13Aaron Plattner1-1/+1
Signed-off-by: Aaron Plattner <aplattner@nvidia.com>
2013-01-07xts5: include xtrans CFLAGS when building libXstAaron Plattner1-1/+1
If xtrans is installed in a weird location, libXst fails to build: ConnDis.c:43:31: fatal error: X11/Xtrans/Xtrans.h: No such file or directory Fix this by including $(XT_CFLAGS) to pick up the path to Xtrans.h. Signed-off-by: Aaron Plattner <aplattner@nvidia.com> Reviewed-by: Peter Harris <pharris@opentext.com>
2012-12-20Build blowupPeter Harris11-81/+13
Rename from pixval/blowup to bin/xts-blowup, add Makefile.am, and delete old-style Makefile. Reviewed-by: Dan Nicholson <dbn.lists@gmail.com> Signed-off-by: Peter Harris <pharris@opentext.com>
2012-12-13Allow space in read buffer for CRLF and NULPeter Harris1-1/+2
tcc will limit output lines to 512 characters not including CRLF. In addition, there needs to be space in the buffer for the trailing NUL that fgets will append. Without this change, xts-report will exit prematurely if it sees a maximum length line. Reviewed-by: Aaron Plattner <aplattner@nvidia.com> Signed-off-by: Peter Harris <pharris@opentext.com>
2012-08-15Don't add local paths when the server is remotePeter Harris1-0/+18
XT_FONTPATH has to be a valid font path. Also trim at least one remote path from XT_FONTPATH_GOOD, so it isn't the same as XT_FONTPATH. Signed-off-by: Peter Harris <pharris@opentext.com>
2012-08-15Fix segfault in XtCallbackReleaseCacheRefList testPeter Harris1-1/+3
XtCallbackReleaseCacheRefList frees its parameter. Reviewed-by: Jeremy Huddleston Sequoia <jeremyhu@apple.com> Signed-off-by: Peter Harris <pharris@opentext.com>
2012-08-15Check for xtrans in configurePeter Harris1-1/+1
Some RHEL have an x11-dev that does not depend on xtrans-dev. Reviewed-by: Jeremy Huddleston Sequoia <jeremyhu@apple.com> Signed-off-by: Peter Harris <pharris@opentext.com>
2012-08-15Fix XSendEvent testsPeter Harris1-4/+4
XSendEvent of GenericEvent will return a Value error if the extension field isn't an extension that supports GenericEvent. Even before then, Xlib suppresses the XSendEvent. Instead of trying to find such an extension, just skip testing this event. Leave GenericEvent in the list, so that notmember doesn't generate GenericEvent. Reviewed-by: Jeremy Huddleston Sequoia <jeremyhu@apple.com> Signed-off-by: Peter Harris <pharris@opentext.com>
2012-07-26Fix build of Xt* tests on FedoraPeter Harris1-1/+1
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2012-07-26Add ShapeExt section to "all".Peter Harris1-0/+2
Signed-off-by: Peter Harris <pharris@opentext.com> Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2012-07-26Revert "Delete the Xt scenarios from 'all'"Peter Harris1-0/+30
All the Xt tests build now. This reverts commit 106e89be471ddd99972a602a789352ca53fc2a88. Signed-off-by: Peter Harris <pharris@opentext.com> Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2012-07-26Build XtEPeter Harris7-8/+33
Rename StringDefs.h.m to StringDefs.m to avoid confusing AutoFoo. Signed-off-by: Peter Harris <pharris@opentext.com> Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2012-07-26Build XtCPeter Harris4-1/+82
Signed-off-by: Peter Harris <pharris@opentext.com> Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2012-07-26Build Xt15Peter Harris4-1/+26
Signed-off-by: Peter Harris <pharris@opentext.com> Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2012-07-26Build Xt14Peter Harris4-1/+28
Signed-off-by: Peter Harris <pharris@opentext.com> Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2012-07-26Build Xt13Peter Harris4-1/+105
Signed-off-by: Peter Harris <pharris@opentext.com> Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2012-07-26Build Xt12Peter Harris4-1/+68
Signed-off-by: Peter Harris <pharris@opentext.com> Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2012-07-26Build Xt11Peter Harris4-1/+140
Signed-off-by: Peter Harris <pharris@opentext.com> Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2012-07-26Build Xt10Peter Harris4-1/+41
Signed-off-by: Peter Harris <pharris@opentext.com> Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2012-07-26Build Xt9Peter Harris4-1/+96
Signed-off-by: Peter Harris <pharris@opentext.com> Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2012-07-26Build Xt8Peter Harris4-1/+41
Signed-off-by: Peter Harris <pharris@opentext.com> Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2012-07-26Build Xt7Peter Harris4-1/+46
Signed-off-by: Peter Harris <pharris@opentext.com> Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2012-07-26Build Xt6Peter Harris4-1/+38
Signed-off-by: Peter Harris <pharris@opentext.com> Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2012-07-26Build Xt5Peter Harris4-1/+44
Signed-off-by: Peter Harris <pharris@opentext.com> Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2012-07-26Build Xt4Peter Harris4-1/+90
Signed-off-by: Peter Harris <pharris@opentext.com> Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2012-07-26Build Xt3Peter Harris4-1/+70
Signed-off-by: Peter Harris <pharris@opentext.com> Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2012-07-26Build libXtawPeter Harris3-8/+7
libXtaw is used by the Xt tests. Signed-off-by: Peter Harris <pharris@opentext.com> Reviewed-by: Aaron Plattner <aplattner@nvidia.com> Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2012-07-26Re-enable the ShapeExt testsPeter Harris4-1/+44
Signed-off-by: Peter Harris <pharris@opentext.com> Reviewed-by: Aaron Plattner <aplattner@nvidia.com> Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2012-07-26Ignore generated man pagePeter Harris1-0/+2
Signed-off-by: Peter Harris <pharris@opentext.com> Reviewed-by: Aaron Plattner <aplattner@nvidia.com> Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2012-01-09xts5: fix XSetDeviceFocus-5Peter Hutterer1-0/+4
t003() selects for key events on the root window. t005() takes over and then complains when the focus correctly follows the pointer and an event is delivered to the root window. If you don't expect events on the root window, unselect them first. We could also XCloseDisplay() at the end of each test but who knows what that does to the other tests. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net> Reviewed-by: Chase Douglas <chase.douglas@canonical.com>
2012-01-09xts5: Fix XSetDeviceFocus-4Peter Hutterer1-16/+20
XDeviceKeyEvent and XKeyEvent are _not_ binary compatible. Expecting a random byte location inside the device event to be of the value it'd have in a core event is an amusing pasttime, but highly inappropriate for a test. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net> Reviewed-by: Chase Douglas <chase.douglas@canonical.com>