Changeset 13911


Ignore:
Timestamp:
Jan 31, 2013, 7:07:34 PM (8 years ago)
Author:
jordan
Message:

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/libtransmission/rename-test.c

    r13910 r13911  
    403403
    404404  /* remove the directory Felidae/Felinae/Felis/catus */
    405   str = tr_buildPath (tor->currentDir, files[1].name, NULL);
     405  str = tr_torrentFindFile (tor, 1);
     406  check (str != NULL);
    406407  remove (str);
    407408  tr_free (str);
    408   str = tr_buildPath (tor->currentDir, files[2].name, NULL);
     409  str = tr_torrentFindFile (tor, 2);
     410  check (str != NULL);
    409411  remove (str);
    410412  tmp = tr_dirname (str);
    411413  remove (tmp);
    412   sync ();
    413414  tr_free (tmp);
    414415  tr_free (str);
     416  sync ();
    415417  verify_and_block_until_done (tor);
    416418  testFileExistsAndConsistsOfThisString (tor, 0, expected_contents[0]);
Note: See TracChangeset for help on using the changeset viewer.