mirror of
https://github.com/aria2/aria2.git
synced 2026-04-02 18:59:20 +00:00
2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
Applied Ross's aria2-0.13.2+1-mingw-4.patch. With this change, all changes in the patch were applied. * test/DHTConnectionImplTest.cc: Fixed unit test error in MinGW. * test/DefaultPieceStorageTest.cc: Fixed unit test error in MinGW. * test/PeerMessageUtilTest.cc: Fixed unit test error in MinGW.
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
#include "DHTConnectionImpl.h"
|
||||
#include "Exception.h"
|
||||
#include "SocketCore.h"
|
||||
#include <iostream>
|
||||
#include <cppunit/extensions/HelperMacros.h>
|
||||
|
||||
@@ -40,6 +41,7 @@ void DHTConnectionImplTest::testWriteAndReadData()
|
||||
std::string remoteHost;
|
||||
uint16_t remotePort;
|
||||
{
|
||||
while(!con2.getSocket()->isReadable(0));
|
||||
ssize_t rlength = con2.receiveMessage(readbuffer, sizeof(readbuffer), remoteHost, remotePort);
|
||||
CPPUNIT_ASSERT_EQUAL((ssize_t)message1.size(), rlength);
|
||||
CPPUNIT_ASSERT_EQUAL(message1,
|
||||
|
||||
Reference in New Issue
Block a user