web_seed test debug logging
This commit is contained in:
parent
79feb037b2
commit
e161bf080d
|
@ -165,7 +165,7 @@ int main()
|
||||||
fflush(stderr);
|
fflush(stderr);
|
||||||
|
|
||||||
int ret = print_failures();
|
int ret = print_failures();
|
||||||
#if !defined TORRENT_LOGGING && !defined TORRENT_VERBOSE_LOGGING
|
#if !defined TORRENT_LOGGING
|
||||||
if (ret == 0)
|
if (ret == 0)
|
||||||
{
|
{
|
||||||
remove_all(test_dir, ec);
|
remove_all(test_dir, ec);
|
||||||
|
|
|
@ -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);
|
char* random_data = (char*)malloc(64 * 1024 * num_pieces);
|
||||||
std::generate(random_data, random_data + 64 * 1024 * num_pieces, random_byte);
|
std::generate(random_data, random_data + 64 * 1024 * num_pieces, random_byte);
|
||||||
std::string seed_filename = combine_path(save_path, "seed");
|
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);
|
save_file(seed_filename.c_str(), random_data, 64 * 1024 * num_pieces);
|
||||||
fs.add_file("seed", 64 * 1024 * num_pieces);
|
fs.add_file("seed", 64 * 1024 * num_pieces);
|
||||||
free(random_data);
|
free(random_data);
|
||||||
|
|
Loading…
Reference in New Issue