read cache fix

This commit is contained in:
Arvid Norberg
2008-02-24 23:14:10 +00:00
parent 19462007d1
commit 1d1398ed7f
3 changed files with 61 additions and 37 deletions

View File

@@ -169,6 +169,16 @@ void test_remove(path const& test_path)
TEST_CHECK(!exists(test_path / "temp_storage"));
}
void test_fastresume()
{
std::ofstream tf("temporary");
boost::intrusive_ptr<torrent_info> info = create_torrent(&tf);
session ses;
torrent_handle h = ses.add_torrent(info, );
}
void run_test(path const& test_path)
{
std::cerr << "\n=== " << test_path.string() << " ===\n" << std::endl;