fix typo in test_checking, introduced by recent error_code in torrent_status patch

This commit is contained in:
arvidn 2015-11-07 01:01:07 -05:00
parent ebdde0dfc8
commit 00090b8284
3 changed files with 4 additions and 4 deletions

View File

@ -130,7 +130,6 @@ namespace libtorrent
error_code errc; error_code errc;
int error_file; int error_file;
// special values for error_file to describe which file or component // special values for error_file to describe which file or component
// encountered the error (``errc``). // encountered the error (``errc``).
enum error_file_t { enum error_file_t {

View File

@ -144,7 +144,8 @@ namespace libtorrent
{ {
torrent_status::torrent_status() torrent_status::torrent_status()
: total_download(0) : error_file(torrent_status::error_file_none)
, total_download(0)
, total_upload(0) , total_upload(0)
, total_payload_download(0) , total_payload_download(0)
, total_payload_upload(0) , total_payload_upload(0)

View File

@ -212,7 +212,7 @@ void test_checking(int flags = read_only_files)
&& st.state != torrent_status::checking_resume_data) && st.state != torrent_status::checking_resume_data)
break; break;
if (!st.errc) break; if (st.errc) break;
test_sleep(500); test_sleep(500);
} }
if (flags & incomplete_files) if (flags & incomplete_files)
@ -242,7 +242,7 @@ void test_checking(int flags = read_only_files)
st = tor1.status(); st = tor1.status();
TEST_CHECK(!st.is_seeding); TEST_CHECK(!st.is_seeding);
TEST_CHECK(!st.errc); TEST_CHECK(st.errc);
if (st.errc) if (st.errc)
fprintf(stderr, "error: %s\n", st.errc.message().c_str()); fprintf(stderr, "error: %s\n", st.errc.message().c_str());
} }