(libT) maybe fix removed-file-found issue reported by Lacrocivious

This commit is contained in:
Jordan Lee 2013-01-31 19:07:34 +00:00
parent 500aa4569f
commit 1eb2933fc5
1 changed files with 5 additions and 3 deletions

View File

@ -402,16 +402,18 @@ test_multifile_torrent (void)
***/
/* remove the directory Felidae/Felinae/Felis/catus */
str = tr_buildPath (tor->currentDir, files[1].name, NULL);
str = tr_torrentFindFile (tor, 1);
check (str != NULL);
remove (str);
tr_free (str);
str = tr_buildPath (tor->currentDir, files[2].name, NULL);
str = tr_torrentFindFile (tor, 2);
check (str != NULL);
remove (str);
tmp = tr_dirname (str);
remove (tmp);
sync ();
tr_free (tmp);
tr_free (str);
sync ();
verify_and_block_until_done (tor);
testFileExistsAndConsistsOfThisString (tor, 0, expected_contents[0]);
for (i=1; i<=2; ++i)