fix trunk build and tests build without exceptions

This commit is contained in:
Arvid Norberg
2009-12-16 10:42:34 +00:00
parent 96cedc9b5f
commit 2055426c52
7 changed files with 54 additions and 21 deletions

View File

@@ -163,13 +163,15 @@ void test_reject_fast()
sha1_hash ih = t->info_hash();
session ses1(fingerprint("LT", 0, 1, 0, 0), std::make_pair(48900, 49000), "0.0.0.0", 0);
error_code ec;
ses1.add_torrent(t, "./tmp1_fast", ec);
add_torrent_params p;
p.ti = t;
p.save_path = "./tmp1_fast";
ses1.add_torrent(p, ec);
test_sleep(2000);
io_service ios;
stream_socket s(ios);
error_code ec;
s.connect(tcp::endpoint(address::from_string("127.0.0.1", ec), ses1.listen_port()), ec);
char recv_buffer[1000];
@@ -220,8 +222,12 @@ void test_respect_suggest()
boost::intrusive_ptr<torrent_info> t = ::create_torrent();
sha1_hash ih = t->info_hash();
session ses1(fingerprint("LT", 0, 1, 0, 0), std::make_pair(48900, 49000), "0.0.0.0", 0);
error_code ec;
ses1.add_torrent(t, "./tmp1_fast", ec);
add_torrent_params p;
p.ti = t;
p.save_path = "./tmp1_fast";
ses1.add_torrent(p, ec);
test_sleep(2000);