alisonjoe / clearsilver

Automatically exported from code.google.com/p/clearsilver
Other
0 stars 0 forks source link

test_crc.cs fails on 64 bit systems #2

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Running cs regression tests
Failed Regression Test: test_crc.cs
  See test_crc.cs.out and test_crc.cs.err
make: *** [test] Error 1

test_crc.cs.err
4c4
< -2128917020

---
> 2166050276

test_crc.cs.out
Parsing test_crc.cs
419156592
1357503972
2166050276

test_crc.cs.gold

Parsing test_crc.cs
419156592
1357503972
-2128917020

This is caused by n in struct _arg being a long int, which is 32 bits on
32bit systems, and 64 bits on 64bit systems.  Making n just an int causes
it to pass, and making it a long will change the gold but should make it
pass on both as well.  The consequences of making either of those changes
will have to be investigated.

Original issue reported on code.google.com by blon...@gmail.com on 11 Feb 2008 at 8:14

GoogleCodeExporter commented 9 years ago
This issue was still not fixed in the latest version clearsilver-0.10.5
If you are compiling the source code, the edit the cs/Makefile, remove the 
test_crc part, and use the library carefully.

Original comment by com...@gmail.com on 27 Jul 2012 at 12:19

GoogleCodeExporter commented 9 years ago
How about crc16? 
https://github.com/xiangzhai/xcloud/blob/master/test/hellocrc.cpp

Original comment by xiangzha...@gmail.com on 29 Sep 2012 at 2:07