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 <phar...@opentext.com> --- xts5/Xlib10/XInstallColormap.m | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/xts5/Xlib10/XInstallColormap.m b/xts5/Xlib10/XInstallColormap.m index cabe836..10d4117 100644 --- a/xts5/Xlib10/XInstallColormap.m +++ b/xts5/Xlib10/XInstallColormap.m @@ -207,6 +207,7 @@ Window base; Window w1, w2; Window w3nocm; XEvent ev; +Screen *screen; XColormapEvent good; XColormapEvent *cmp; int got; @@ -217,6 +218,13 @@ int got; good.new = False; good.state = ColormapInstalled; + screen = ScreenOfDisplay(display, DefaultScreen(display)); + if (MaxCmapsOfScreen(screen) > 1) { + untested("Cannot reliably test ColormapNotify when the server has implicit colormaps"); + report(" Server supports more than one installed colormap"); + return; + } + for (resetvinf(VI_WIN); nextvinf(&vp); ) { base = makewin(display, vp); -- 1.7.10.4 _______________________________________________ xorg-devel@lists.x.org: X.Org development Archives: http://lists.x.org/archives/xorg-devel Info: http://lists.x.org/mailman/listinfo/xorg-devel