mirror of
https://github.com/aria2/aria2.git
synced 2025-04-07 06:27:37 +03:00
2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
Don't use Time::parse(buf, "%Y%m%d%H%M%S") because Mac OS X and included strptime doesn't parse data for this format. * src/FtpConnection.cc * test/FtpConnectionTest.cc
This commit is contained in:
parent
a57e0b1273
commit
fe267b43d5
3 changed files with 12 additions and 8 deletions
|
@ -172,14 +172,13 @@ void FtpConnectionTest::testReceiveMdtmResponse()
|
|||
CPPUNIT_ASSERT(t.bad());
|
||||
}
|
||||
{
|
||||
#ifdef HAVE_STRPTIME
|
||||
// invalid month: 19
|
||||
// invalid month: 19, we don't care about invalid month..
|
||||
Time t;
|
||||
_serverSocket->writeData("213 20081908124312\r\n");
|
||||
waitRead(_clientSocket);
|
||||
CPPUNIT_ASSERT_EQUAL((unsigned int)213, _ftp->receiveMdtmResponse(t));
|
||||
CPPUNIT_ASSERT(t.bad());
|
||||
#endif
|
||||
// Wed Jul 8 12:43:12 2009
|
||||
CPPUNIT_ASSERT_EQUAL((time_t)1247056992, t.getTime());
|
||||
}
|
||||
{
|
||||
Time t;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue