merged unit test fix from RC_0_16

This commit is contained in:
Arvid Norberg 2013-12-15 23:25:45 +00:00
parent 7a98a4b201
commit 64af2b833b
1 changed files with 2 additions and 2 deletions

View File

@ -469,8 +469,8 @@ int test_main()
error_code ec;
fprintf(stderr, "loading %s\n", test_error_torrents[i].file);
boost::intrusive_ptr<torrent_info> ti(new torrent_info(combine_path(combine_path(root_dir, "test_torrents"), test_error_torrents[i].file), ec));
fprintf(stderr, "E: %s\nexpected: %s\n", ec.message().c_str(), test_error_torrents[i].error.message().c_str());
TEST_EQUAL(ec, test_error_torrents[i].error);
fprintf(stderr, "E: \"%s\"\nexpected: \"%s\"\n", ec.message().c_str(), test_error_torrents[i].error.message().c_str());
TEST_CHECK(ec.message() == test_error_torrents[i].error.message());
}
return 0;