-
Notifications
You must be signed in to change notification settings - Fork 190
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #250 from freeswitch/leap
Fix msg_date_d and msg_date_e wrongly parsing dates after 29 Feb. Mon returned by month_d() is in 0..11 range. Fix unit-tests that were assuming 25 Mar 2004 to be Wednesday but it's actually Thursday.
- Loading branch information
Showing
2 changed files
with
6 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -743,7 +743,7 @@ int test_basic(void) | |
TEST_1(ex = sip_expires_make(home, "4294967297")); /* XXX */ | ||
su_free(home, ex); | ||
|
||
TEST_1(ex = sip_expires_make(home, "Wed, 25 Mar 2004 14:49:29 GMT")); | ||
TEST_1(ex = sip_expires_make(home, "Thu, 25 Mar 2004 14:49:29 GMT")); | ||
su_free(home, ex); | ||
|
||
TEST_1(ex = sip_expires_create(home, 3600)); | ||
|
@@ -1034,7 +1034,7 @@ static int test_encoding(void) | |
"Extension-Header: extended, more\r\n" | ||
"Reason: Q.850;cause=16;text=\"Terminated\"\r\n" | ||
"Contact: <sip:[email protected]:5060>\r\n" | ||
"Date: Wed, 25 Mar 2004 14:49:29 GMT\r\n" | ||
"Date: Thu, 25 Mar 2004 14:49:29 GMT\r\n" | ||
"Max-Forwards: 80\r\n" | ||
"Min-Expires: 30\r\n" | ||
"Retry-After: 48 (this is a comment) ;duration=321\r\n" | ||
|
@@ -1109,10 +1109,10 @@ static int test_encoding(void) | |
"Extension-Header: extended, more\r\n" | ||
"Reason: SIP;cause=400;text=\"Bad Message\"\r\n" | ||
"Contact: <sip:[email protected]:5060>;audio\r\n" | ||
"Date: Wed, 25 Mar 2004 14:49:29 GMT\r\n" | ||
"Date: Thu, 25 Mar 2004 14:49:29 GMT\r\n" | ||
"Max-Forwards: 80\r\n" | ||
"Min-Expires: 30\r\n" | ||
"Expires: Wed, 25 Mar 2004 15:49:29 GMT\r\n" | ||
"Expires: Thu, 25 Mar 2004 15:49:29 GMT\r\n" | ||
"Retry-After: 48;duration=321\r\n" | ||
"Record-Route: <sip:[email protected];maddr=172.21.40.40>\r\n" | ||
"Event: presence;id=1\r\n" | ||
|