From a75f9394a612b4f14a48adfe63944fa99e993785 Mon Sep 17 00:00:00 2001 From: Jordan Lee Date: Wed, 23 Jan 2013 22:20:37 +0000 Subject: [PATCH] (libT) rename-test tracers --- libtransmission/rename-test.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/libtransmission/rename-test.c b/libtransmission/rename-test.c index 21a164814..aeaa0e210 100644 --- a/libtransmission/rename-test.c +++ b/libtransmission/rename-test.c @@ -463,6 +463,7 @@ static void create_zero_torrent_partial_contents (tr_torrent * tor, bool incomplete) { tr_file_index_t i; + const tr_stat * st; for (i=0; iinfo.fileCount; ++i) { @@ -486,7 +487,8 @@ create_zero_torrent_partial_contents (tr_torrent * tor, bool incomplete) } verify_and_block_until_done (tor); - assert (tr_torrentIsSeed (tor)); + st = tr_torrentStat (tor); + assert (st->leftUntilDone == 0); if (incomplete) { @@ -506,7 +508,8 @@ create_zero_torrent_partial_contents (tr_torrent * tor, bool incomplete) tr_free (oldpath); verify_and_block_until_done (tor); - assert (!tr_torrentIsSeed (tor)); + st = tr_torrentStat (tor); + assert (st->leftUntilDone == tor->info.pieceSize); } } -- 2.40.0