Make check

Alejandro Guerrieri <[email protected]>
Newsgroups gmane.comp.mobile.kannel.devel
Message-ID <[email protected]>
I'm checking on the reasons why make check fails.

First issue I've encountered is with test/test_headers.c:

2009-01-14 12:32:20 [62241] [0] ERROR: Exp: Etag: "floop"
2009-01-14 12:32:20 [62241] [0] ERROR: Got: Etag: floop"
2009-01-14 12:32:20 [62241] [0] ERROR: Exp: Etag: ""
2009-01-14 12:32:20 [62241] [0] ERROR: Got: Etag: "
2009-01-14 12:32:20 [62241] [0] ERROR: Exp: If-Match: "foobar"
2009-01-14 12:32:20 [62241] [0] ERROR: Got: If-Match: foobar"
2009-01-14 12:32:20 [62241] [0] ERROR: Exp: If-None-Match: "foobar"
2009-01-14 12:32:20 [62241] [0] ERROR: Got: If-None-Match: foobar"
2009-01-14 12:32:20 [62241] [0] ERROR: Exp: If-Range: "foobar"
2009-01-14 12:32:20 [62241] [0] ERROR: Got: If-Range: foobar"

The error seems to be happening on wsp_pack_text that is responsible  
for the packing for those 4 headers.

I've tried replacing wsp_pack_text with wsp_pack_quoted_text and that  
solved the problem on the 3 first headers (though I'm not sure if this  
doesn't have any other consequences, I was just checking), but If- 
Range failed on another headers because dates where reformatted,  
probably on the unpacking:

2009-01-14 12:34:45 [62496] [0] ERROR: Exp: If-Range: Sun, 06 Nov 1994  
08:49:37 GMT
2009-01-14 12:34:45 [62496] [0] ERROR: Got: If-Range: Sunday, 06- 
Nov-94 08:49:37 GMT
2009-01-14 12:34:45 [62496] [0] ERROR: Exp: If-Range: Sun, 06 Nov 1994  
08:49:37 GMT
2009-01-14 12:34:45 [62496] [0] ERROR: Got: If-Range: Sun Nov  6  
08:49:37 1994

Any clues on how to avoid wsp_pack_text from "eating" the first quote  
on strings?

Regards,
--
Alejandro Guerrieri
[email protected]
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.