From 1eb2933fc50f1bf989633776cf2d2ab9cd56ec1e Mon Sep 17 00:00:00 2001 From: Jordan Lee Date: Thu, 31 Jan 2013 19:07:34 +0000 Subject: [PATCH] (libT) maybe fix removed-file-found issue reported by Lacrocivious --- libtransmission/rename-test.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/libtransmission/rename-test.c b/libtransmission/rename-test.c index c2d60a6d2..720c74daa 100644 --- a/libtransmission/rename-test.c +++ b/libtransmission/rename-test.c @@ -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)