Ignore:
Timestamp:
Jan 31, 2013, 9:58:25 PM (8 years ago)
Author:
jordan
Message:

(libT) change the API signature for tr_torrentVerify() s.t. client code can be notified when the verify is finished

File:
1 edited

Legend:

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

    r13911 r13913  
    2020****
    2121***/
    22 
    23 #define verify_and_block_until_done(tor) \
    24   do { \
    25     do { tr_wait_msec (10); } while (tor->verifyState != TR_VERIFY_NONE); \
    26     tr_torrentVerify (tor); \
    27     do { tr_wait_msec (10); } while (tor->verifyState != TR_VERIFY_NONE); \
    28   } while (0)
    2922
    3023#define check_have_none(tor, totalSize) \
     
    173166
    174167  /* sanity check the (empty) stats */
    175   verify_and_block_until_done (tor);
     168  libttest_blockingTorrentVerify (tor);
    176169  check_have_none (tor, totalSize);
    177170
     
    179172
    180173  /* sanity check the stats again, now that we've added the file */
    181   verify_and_block_until_done (tor);
     174  libttest_blockingTorrentVerify (tor);
    182175  st = tr_torrentStat (tor);
    183176  check_int_eq (TR_STATUS_STOPPED, st->activity);
     
    329322
    330323  /* sanity check the (empty) stats */
    331   verify_and_block_until_done (tor);
     324  libttest_blockingTorrentVerify (tor);
    332325  check_have_none (tor, totalSize);
    333326
     
    336329
    337330  /* sanity check the (full) stats */
    338   verify_and_block_until_done (tor);
     331  libttest_blockingTorrentVerify (tor);
    339332  st = tr_torrentStat (tor);
    340333  check_int_eq (TR_STATUS_STOPPED, st->activity);
     
    415408  tr_free (str);
    416409  sync ();
    417   verify_and_block_until_done (tor);
     410  libttest_blockingTorrentVerify (tor);
    418411  testFileExistsAndConsistsOfThisString (tor, 0, expected_contents[0]);
    419412  for (i=1; i<=2; ++i)
Note: See TracChangeset for help on using the changeset viewer.