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
Tatsuhiro Tsujikawa 2008-02-02 13:06:55 +00:00
parent af471b931e
commit 20621d011d
2 changed files with 9 additions and 1 deletions

View File

@ -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.

View File

@ -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));