From 6dcac0a33f36d408b6826f167e6cbfad64a065bd Mon Sep 17 00:00:00 2001 From: Arvid Norberg Date: Tue, 1 Oct 2013 16:47:05 +0000 Subject: [PATCH] minor unit test fixes --- test/setup_transfer.cpp | 2 +- test/web_seed_suite.cpp | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/test/setup_transfer.cpp b/test/setup_transfer.cpp index e1d7c7838..cdfd77f41 100644 --- a/test/setup_transfer.cpp +++ b/test/setup_transfer.cpp @@ -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; diff --git a/test/web_seed_suite.cpp b/test/web_seed_suite.cpp index e09d343e4..7730207b9 100644 --- a/test/web_seed_suite.cpp +++ b/test/web_seed_suite.cpp @@ -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 +#include "setup_transfer.hpp" + #include using namespace libtorrent;