فهرست منبع

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)
Tatsuhiro Tsujikawa 17 سال پیش
والد
کامیت
20621d011d
2فایلهای تغییر یافته به همراه9 افزوده شده و 1 حذف شده
  1. 7 0
      ChangeLog
  2. 2 1
      test/SocketCoreTest.cc

+ 7 - 0
ChangeLog

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

+ 2 - 1
test/SocketCoreTest.cc

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