mirror of
https://github.com/transmission/transmission
synced 2024-12-26 09:37:56 +00:00
(libT) fix a filesystem sync issue in rename-test, reported by Lacrocivious
This commit is contained in:
parent
47d2a1ee8f
commit
500aa4569f
1 changed files with 7 additions and 2 deletions
|
@ -409,12 +409,17 @@ test_multifile_torrent (void)
|
|||
remove (str);
|
||||
tmp = tr_dirname (str);
|
||||
remove (tmp);
|
||||
sync ();
|
||||
tr_free (tmp);
|
||||
tr_free (str);
|
||||
verify_and_block_until_done (tor);
|
||||
testFileExistsAndConsistsOfThisString (tor, 0, expected_contents[0]);
|
||||
check (tr_torrentFindFile (tor, 1) == NULL);
|
||||
check (tr_torrentFindFile (tor, 2) == NULL);
|
||||
for (i=1; i<=2; ++i)
|
||||
{
|
||||
str = tr_torrentFindFile (tor, i);
|
||||
check_streq (NULL, str);
|
||||
tr_free (str);
|
||||
}
|
||||
testFileExistsAndConsistsOfThisString (tor, 3, expected_contents[3]);
|
||||
|
||||
/* rename a branch... */
|
||||
|
|
Loading…
Reference in a new issue