Changeset 13910


Ignore:
Timestamp:
Jan 31, 2013, 6:20:37 PM (8 years ago)
Author:
jordan
Message:

(libT) fix a filesystem sync issue in rename-test, reported by Lacrocivious

File:
1 edited

Legend:

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

    r13906 r13910  
    410410  tmp = tr_dirname (str);
    411411  remove (tmp);
     412  sync ();
    412413  tr_free (tmp);
    413414  tr_free (str);
    414415  verify_and_block_until_done (tor);
    415416  testFileExistsAndConsistsOfThisString (tor, 0, expected_contents[0]);
    416   check (tr_torrentFindFile (tor, 1) == NULL);
    417   check (tr_torrentFindFile (tor, 2) == NULL);
     417  for (i=1; i<=2; ++i)
     418    {
     419      str = tr_torrentFindFile (tor, i);
     420      check_streq (NULL, str);
     421      tr_free (str);
     422    }
    418423  testFileExistsAndConsistsOfThisString (tor, 3, expected_contents[3]);
    419424
Note: See TracChangeset for help on using the changeset viewer.