diff --git a/test/test_torrent_parse.cpp b/test/test_torrent_parse.cpp index 2f6ffc015..5ab9bae3c 100644 --- a/test/test_torrent_parse.cpp +++ b/test/test_torrent_parse.cpp @@ -469,8 +469,8 @@ int test_main() error_code ec; fprintf(stderr, "loading %s\n", test_error_torrents[i].file); boost::intrusive_ptr 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;