mirror of https://github.com/aria2/aria2
2008-02-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
Commented out ip address comparison because a host can have multiple ip addresses and it is hard to predict the hostname is resolved into which one. * test/SocketCoreTest.cc (testWriteAndReadDatagram)pull/1/head
parent
af471b931e
commit
20621d011d
|
@ -1,3 +1,10 @@
|
|||
2008-02-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
|
||||
|
||||
Commented out ip address comparison because a host can have multiple
|
||||
ip addresses and it is hard to predict the hostname is resolved into
|
||||
which one.
|
||||
* test/SocketCoreTest.cc (testWriteAndReadDatagram)
|
||||
|
||||
2008-02-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
|
||||
|
||||
* po/Makefile.in: Removed since this is generated by configure.
|
||||
|
|
|
@ -38,7 +38,8 @@ void SocketCoreTest::testWriteAndReadDatagram()
|
|||
pair<string, uint16_t> peer;
|
||||
{
|
||||
ssize_t rlength = s.readDataFrom(readbuffer, sizeof(readbuffer), peer);
|
||||
CPPUNIT_ASSERT_EQUAL(string("127.0.0.1"), peer.first);
|
||||
// commented out because ip address may vary
|
||||
//CPPUNIT_ASSERT_EQUAL(string("127.0.0.1"), peer.first);
|
||||
CPPUNIT_ASSERT_EQUAL((ssize_t)message1.size(), rlength);
|
||||
readbuffer[rlength] = '\0';
|
||||
CPPUNIT_ASSERT_EQUAL(message1, string(readbuffer));
|
||||
|
|
Loading…
Reference in New Issue