From e161bf080dbd81cd20e302d11bb24d391ce6f0d1 Mon Sep 17 00:00:00 2001 From: Arvid Norberg Date: Thu, 8 Jan 2015 22:54:11 +0000 Subject: [PATCH] web_seed test debug logging --- test/main.cpp | 2 +- test/web_seed_suite.cpp | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/test/main.cpp b/test/main.cpp index a53af330e..75d3f9ae8 100644 --- a/test/main.cpp +++ b/test/main.cpp @@ -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); diff --git a/test/web_seed_suite.cpp b/test/web_seed_suite.cpp index d5b34a246..2c29e9d49 100644 --- a/test/web_seed_suite.cpp +++ b/test/web_seed_suite.cpp @@ -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);