fixed a long standing (quite rare) bug, thanks to Massaroddel. Made the tests clean up their temporary files.

This commit is contained in:
Arvid Norberg
2006-06-24 22:30:59 +00:00
parent db4ca12c02
commit d3ba5edd6d
5 changed files with 15 additions and 3 deletions

View File

@@ -55,7 +55,8 @@ void test_transfer(bool clear_files = true, bool disconnect = false)
int test_main()
{
using namespace libtorrent;
using namespace boost::filesystem;
// test to disconnect one client prematurely
test_transfer(true, true);
@@ -65,6 +66,9 @@ int test_main()
// test where both have data (to trigger the file check)
test_transfer(false);
remove_all("./tmp1");
remove_all("./tmp2");
return 0;
}