minor unit test fixes

This commit is contained in:
Arvid Norberg 2013-10-01 16:47:05 +00:00
parent 7545c15fc2
commit 6dcac0a33f
2 changed files with 4 additions and 1 deletions

View File

@ -1216,7 +1216,7 @@ void web_server_thread(int* port, bool ssl, bool chunked)
while (!p.finished())
{
TORRENT_ASSERT(len < int(sizeof(buf)));
TORRENT_ASSERT(len <= int(sizeof(buf)));
size_t received = 0;
bool done = false;
bool timed_out = false;

View File

@ -40,8 +40,11 @@ POSSIBILITY OF SUCH DAMAGE.
#include "libtorrent/create_torrent.hpp"
#include "libtorrent/thread.hpp"
#include "libtorrent/alert_types.hpp"
#include "libtorrent/file.hpp"
#include <boost/tuple/tuple.hpp>
#include "setup_transfer.hpp"
#include <iostream>
using namespace libtorrent;