fix non-openssl builds and improved error messages for mutable puts

This commit is contained in:
Arvid Norberg
2011-05-25 02:41:48 +00:00
parent 6fa1827c39
commit 2bb53ce6e8
3 changed files with 18 additions and 12 deletions

View File

@@ -428,8 +428,8 @@ int test_main()
fprintf(stderr, "seeds: %f\n", seeds.size());
fprintf(stderr, "downloaders: %f\n", downloaders.size());
TEST_CHECK(fabs(seeds.size() - 50.f) <= 2.f);
TEST_CHECK(fabs(downloaders.size() - 50.f) <= 2.f);
TEST_CHECK(fabs(seeds.size() - 50.f) <= 3.f);
TEST_CHECK(fabs(downloaders.size() - 50.f) <= 3.f);
}
else
{
@@ -490,6 +490,9 @@ int test_main()
announce_immutable_items(node, eps, items, sizeof(items)/sizeof(items[0]));
#ifdef TORRENT_USE_OPENSSL
// RSA functions are only implemented with openssl for now
// ==== get / put mutable items ===
char private_key[1192];
@@ -562,6 +565,7 @@ int test_main()
, error_string, print_entry(response).c_str());
TEST_ERROR(error_string);
}
#endif // TORRENT_USE_OPENSSL
return 0;
}