fixed inconsistent build requirement around entry::print()
This commit is contained in:
parent
33768fa282
commit
92a541035e
|
@ -174,7 +174,7 @@ namespace libtorrent
|
||||||
entry* find_key(std::string const& key);
|
entry* find_key(std::string const& key);
|
||||||
entry const* find_key(std::string const& key) const;
|
entry const* find_key(std::string const& key) const;
|
||||||
|
|
||||||
#if TORRENT_USE_IOSTREAM
|
#if defined TORRENT_DEBUG && TORRENT_USE_IOSTREAM
|
||||||
void print(std::ostream& os, int indent = 0) const;
|
void print(std::ostream& os, int indent = 0) const;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
|
@ -553,7 +553,7 @@ void test_fastresume(path const& test_path)
|
||||||
ses.remove_torrent(h, session::delete_files);
|
ses.remove_torrent(h, session::delete_files);
|
||||||
}
|
}
|
||||||
TEST_CHECK(!exists(test_path / "tmp1/temporary"));
|
TEST_CHECK(!exists(test_path / "tmp1/temporary"));
|
||||||
#if TORRENT_USE_IOSTREAM
|
#if defined TORRENT_DEBUG && TORRENT_USE_IOSTREAM
|
||||||
resume.print(std::cout);
|
resume.print(std::cout);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
@ -626,7 +626,7 @@ void test_rename_file_in_fastresume(path const& test_path)
|
||||||
TEST_CHECK(!exists(test_path / "tmp2/temporary"));
|
TEST_CHECK(!exists(test_path / "tmp2/temporary"));
|
||||||
TEST_CHECK(exists(test_path / "tmp2/testing_renamed_files"));
|
TEST_CHECK(exists(test_path / "tmp2/testing_renamed_files"));
|
||||||
TEST_CHECK(resume.dict().find("mapped_files") != resume.dict().end());
|
TEST_CHECK(resume.dict().find("mapped_files") != resume.dict().end());
|
||||||
#if TORRENT_USE_IOSTREAM
|
#if defined TORRENT_DEBUG && TORRENT_USE_IOSTREAM
|
||||||
resume.print(std::cout);
|
resume.print(std::cout);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
@ -649,7 +649,7 @@ void test_rename_file_in_fastresume(path const& test_path)
|
||||||
ses.remove_torrent(h);
|
ses.remove_torrent(h);
|
||||||
}
|
}
|
||||||
TEST_CHECK(resume.dict().find("mapped_files") != resume.dict().end());
|
TEST_CHECK(resume.dict().find("mapped_files") != resume.dict().end());
|
||||||
#if TORRENT_USE_IOSTREAM
|
#if defined TORRENT_DEBUG && TORRENT_USE_IOSTREAM
|
||||||
resume.print(std::cout);
|
resume.print(std::cout);
|
||||||
#endif
|
#endif
|
||||||
remove_all(test_path / "tmp2");
|
remove_all(test_path / "tmp2");
|
||||||
|
|
Loading…
Reference in New Issue