[gnet] Athlon64 trouble



Hello gnet developers!

I just compiled gnet on an Athlon64 running Linux. 
Compilation went without errors, however the checks do not pass all. 

The used library version was 2.0.5, however the the pack_test.c and pack.c 
files were not modifed for 2.0.7. 
I'll have a test of version 2.0.7 ASAP (probably Tuesday). 

It seems to me that using types like "int" and "long" for (un)pack 
when doing network communication is flawed by design. One should 
rather explicitly enforce the size of the arguments using int32 and int64 
to ensure portability across different platforms. 

Regards,
Wolfgang

PASS: base64_test
PASS: hash_test
PASS: inetaddr_test
PASS: ipv6_test
FAILURE: test #10800 at byte 0
        output   : 00000000
        should be: 04030201
FAILURE: test #10800 at byte 1
        output   : 00000000
        should be: 04030201
FAILURE: test #10800 at byte 2
        output   : 00000000
        should be: 04030201
FAILURE: test #10800 at byte 3
        output   : 00000000
        should be: 04030201
FAILURE: test #10801 at byte 0
        output   : 00000000
        should be: 04030201
FAILURE: test #10801 at byte 1
        output   : 00000000
        should be: 04030201
FAILURE: test #10801 at byte 2
        output   : 00000000
        should be: 04030201
FAILURE: test #10801 at byte 3
        output   : 00000000
        should be: 04030201
FAILURE: test #10810 at byte 0
        output   : 00000000
        should be: 040302f1
FAILURE: test #10810 at byte 1
        output   : 00000000
        should be: 040302f1
FAILURE: test #10810 at byte 2
        output   : 00000000
        should be: 040302f1
FAILURE: test #10810 at byte 3
        output   : 00000000
        should be: 040302f1
FAILURE: test #10811 at byte 0
        output   : 00000000
        should be: 040302f1
FAILURE: test #10811 at byte 1
        output   : 00000000
        should be: 040302f1
FAILURE: test #10811 at byte 2
        output   : 00000000
        should be: 040302f1
FAILURE: test #10811 at byte 3
        output   : 00000000
        should be: 040302f1
FAILURE: test #10820 at byte 0
        output   : 00000000
        should be: f4030201
FAILURE: test #10820 at byte 1
        output   : 00000000
        should be: f4030201
FAILURE: test #10820 at byte 2
        output   : 00000000
        should be: f4030201
FAILURE: test #10820 at byte 3
        output   : 00000000
        should be: f4030201
FAILURE: test #10821 at byte 0
        output   : 00000000
        should be: f4030201
FAILURE: test #10821 at byte 1
        output   : 00000000
        should be: f4030201
FAILURE: test #10821 at byte 2
        output   : 00000000
        should be: f4030201
FAILURE: test #10821 at byte 3
        output   : 00000000
        should be: f4030201
FAILURE: test #10900 at byte 0
        output   : 00000000
        should be: 04030201
FAILURE: test #10900 at byte 1
        output   : 00000000
        should be: 04030201
FAILURE: test #10900 at byte 2
        output   : 00000000
        should be: 04030201
FAILURE: test #10900 at byte 3
        output   : 00000000
        should be: 04030201
FAILURE: test #10901 at byte 0
        output   : 00000000
        should be: 04030201
FAILURE: test #10901 at byte 1
        output   : 00000000
        should be: 04030201
FAILURE: test #10901 at byte 2
        output   : 00000000
        should be: 04030201
FAILURE: test #10901 at byte 3
        output   : 00000000
        should be: 04030201
FAILURE: test #10910 at byte 0
        output   : 00000000
        should be: 040302f1
FAILURE: test #10910 at byte 1
        output   : 00000000
        should be: 040302f1
FAILURE: test #10910 at byte 2
        output   : 00000000
        should be: 040302f1
FAILURE: test #10910 at byte 3
        output   : 00000000
        should be: 040302f1
FAILURE: test #10911 at byte 0
        output   : 00000000
        should be: 040302f1
FAILURE: test #10911 at byte 1
        output   : 00000000
        should be: 040302f1
FAILURE: test #10911 at byte 2
        output   : 00000000
        should be: 040302f1
FAILURE: test #10911 at byte 3
        output   : 00000000
        should be: 040302f1
FAILURE: test #10920 at byte 0
        output   : 00000000
        should be: f4030201
FAILURE: test #10920 at byte 1
        output   : 00000000
        should be: f4030201
FAILURE: test #10920 at byte 2
        output   : 00000000
        should be: f4030201
FAILURE: test #10920 at byte 3
        output   : 00000000
        should be: f4030201
FAILURE: test #10921 at byte 0
        output   : 00000000
        should be: f4030201
FAILURE: test #10921 at byte 1
        output   : 00000000
        should be: f4030201
FAILURE: test #10921 at byte 2
        output   : 00000000
        should be: f4030201
FAILURE: test #10921 at byte 3
        output   : 00000000
        should be: f4030201
FAIL: pack_test
PASS: unpack_test



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]