Subject: | GD.t/test7 fails on Red Hat Enterprise Linux Server release 6.6 (Santiago), perl-5.18.4 |
t/GD.t fails on test image 7. This blocks automated installations of the module.
Walking through GD.t, it is failing on this line
DB<1>
main::compare_image(t/GD.t:74): return ! $data1->compare($data2) & GD_CMP_IMAGE();
`$data1->compare($data2)` returns 7, which is
GD_CMP_IMAGE & GD_CMP_NUM_COLORS & GD_CMP_COLOR
The palettes are fairly different. Here's the palette for $data1 (the image the test generates):
```
0: rgb(255:255:255) 0xffffff
1: rgb( 0: 0: 0) 0x000000
2: rgb(255: 0: 0) 0xff0000
3: rgb( 0: 0:255) 0x0000ff
4: rgb(255:250:205) 0xfffacd
5: rgb(191:191:191) 0xbfbfbf
6: rgb(159:159:159) 0x9f9f9f
7: rgb( 31: 31: 31) 0x1f1f1f
8: rgb(223:223:223) 0xdfdfdf
9: rgb(127:127:127) 0x7f7f7f
10: rgb( 95: 95: 95) 0x5f5f5f
11: rgb( 63: 63: 63) 0x3f3f3f
12: rgb( 83: 83: 83) 0x535353
13: rgb( 79: 79: 79) 0x4f4f4f
14: rgb( 55: 55: 55) 0x373737
15: rgb(119:119:119) 0x777777
16: rgb(143:143:143) 0x8f8f8f
17: rgb(167:167:167) 0xa7a7a7
18: rgb(255:191:191) 0xffbfbf
19: rgb(255:159:159) 0xff9f9f
20: rgb(255:127:127) 0xff7f7f
21: rgb(255: 31: 31) 0xff1f1f
22: rgb(255: 95: 95) 0xff5f5f
23: rgb(255:223:223) 0xffdfdf
24: rgb(255: 63: 63) 0xff3f3f
25: rgb(255:111:111) 0xff6f6f
26: rgb(255: 55: 55) 0xff3737
27: rgb(255: 39: 39) 0xff2727
28: rgb(255:195:195) 0xffc3c3
29: rgb(255:119:119) 0xff7777
30: rgb(255: 83: 83) 0xff5353
31: rgb(255:139:139) 0xff8b8b
32: rgb(223:223:255) 0xdfdfff
33: rgb(159:159:255) 0x9f9fff
34: rgb(127:127:255) 0x7f7fff
35: rgb( 95: 95:255) 0x5f5fff
36: rgb( 63: 63:255) 0x3f3fff
37: rgb(191:191:255) 0xbfbfff
38: rgb( 31: 31:255) 0x1f1fff
39: rgb( 23: 23:255) 0x1717ff
40: rgb( 47: 47:255) 0x2f2fff
41: rgb(195:195:255) 0xc3c3ff
42: rgb(119:119:255) 0x7777ff
43: rgb(139:139:255) 0x8b8bff
44: rgb(167:167:255) 0xa7a7ff
```
and here is the palette for $data2, the known good image:
```
0: rgb(255:255:255) 0xffffff
1: rgb( 0: 0: 0) 0x000000
2: rgb(255: 0: 0) 0xff0000
3: rgb( 0: 0:255) 0x0000ff
4: rgb(255:250:205) 0xfffacd
5: rgb( 95: 95: 95) 0x5f5f5f
6: rgb(191:191:191) 0xbfbfbf
7: rgb(223:223:223) 0xdfdfdf
8: rgb( 31: 31: 31) 0x1f1f1f
9: rgb( 63: 63: 63) 0x3f3f3f
10: rgb(127:127:127) 0x7f7f7f
11: rgb(159:159:159) 0x9f9f9f
12: rgb( 71: 71: 71) 0x474747
13: rgb( 47: 47: 47) 0x2f2f2f
14: rgb(111:111:111) 0x6f6f6f
15: rgb( 83: 83: 83) 0x535353
16: rgb(167:167:167) 0xa7a7a7
17: rgb(143:143:143) 0x8f8f8f
18: rgb(255: 63: 63) 0xff3f3f
19: rgb(255:127:127) 0xff7f7f
20: rgb(255:191:191) 0xffbfbf
21: rgb(255:159:159) 0xff9f9f
22: rgb(255: 31: 31) 0xff1f1f
23: rgb(255:223:223) 0xffdfdf
24: rgb(255: 95: 95) 0xff5f5f
25: rgb(255:167:167) 0xffa7a7
26: rgb(255: 83: 83) 0xff5353
27: rgb(255: 47: 47) 0xff2f2f
28: rgb(255: 19: 19) 0xff1313
29: rgb(255: 27: 27) 0xff1b1b
30: rgb(255: 99: 99) 0xff6363
31: rgb(255:119:119) 0xff7777
32: rgb(255: 79: 79) 0xff4f4f
33: rgb(255: 55: 55) 0xff3737
34: rgb(223:223:255) 0xdfdfff
35: rgb(159:159:255) 0x9f9fff
36: rgb(127:127:255) 0x7f7fff
37: rgb( 95: 95:255) 0x5f5fff
38: rgb( 63: 63:255) 0x3f3fff
39: rgb(191:191:255) 0xbfbfff
40: rgb( 31: 31:255) 0x1f1fff
41: rgb( 23: 23:255) 0x1717ff
42: rgb( 47: 47:255) 0x2f2fff
43: rgb(195:195:255) 0xc3c3ff
44: rgb(119:119:255) 0x7777ff
45: rgb(139:139:255) 0x8b8bff
46: rgb(167:167:255) 0xa7a7ff
```
The colors that the test explicitly specifies occupy the first 5 slots in both palettes, in the same order.
Visually (dumping the images to using ->png and viewing in preview on a mac) the images appear the same.
I can't tell if the colors in the other slots in the palette are used for anything (e.g. antialiasing or ...).