Colormap tests are broken on gray visuals
@ajax
Submitted by ajax Assigned to Stuart Anderson @anderson
Description
Running xts5 against Xvfb from 7.0rc2 at 8bpp I get the following failures:
TEST CASE: XAllocNamedColor: 2 FAIL TEST CASE: XLookupColor: 2 FAIL
XAllocNamedColor-2 checks that every pair of color names in the rgb database resolve to different RGB tuples. However, it checks this against StaticGray and GrayScale visuals, so "close" colors with different chromaticity will resolve to the same color:
REPORT: Colour names "dark cyan" and "violet red" yield the same supported rgb v alues. TRACE: dark cyan = r 24929 g 24929 b 24929, violet red = r 24929 g 24929 b 2492 9
XLookupColor-2 has the same issue. Suggest that these tests should skip the gray visuals.