web_seed test debug logging

This commit is contained in:
Arvid Norberg 2015-01-08 22:54:11 +00:00
parent 79feb037b2
commit e161bf080d
2 changed files with 3 additions and 1 deletions

View File

@ -165,7 +165,7 @@ int main()
fflush(stderr);
int ret = print_failures();
#if !defined TORRENT_LOGGING && !defined TORRENT_VERBOSE_LOGGING
#if !defined TORRENT_LOGGING
if (ret == 0)
{
remove_all(test_dir, ec);

View File

@ -298,6 +298,8 @@ int EXPORT run_http_suite(int proxy, char const* protocol, bool test_url_seed
char* random_data = (char*)malloc(64 * 1024 * num_pieces);
std::generate(random_data, random_data + 64 * 1024 * num_pieces, random_byte);
std::string seed_filename = combine_path(save_path, "seed");
fprintf(stderr, "creating file: %s %s\n"
, current_working_directory().c_str(), seed_filename.c_str());
save_file(seed_filename.c_str(), random_data, 64 * 1024 * num_pieces);
fs.add_file("seed", 64 * 1024 * num_pieces);
free(random_data);