Merge pull request #507 from arvidn/fix-test-upnp-1.1
fix test_upnp build
This commit is contained in:
commit
0cd0c57880
|
@ -98,6 +98,7 @@ namespace libtorrent
|
||||||
// int: port-mapping index
|
// int: port-mapping index
|
||||||
// address: external address as queried from router
|
// address: external address as queried from router
|
||||||
// int: external port
|
// int: external port
|
||||||
|
// int: protocol (UDP, TCP)
|
||||||
// std::string: error message
|
// std::string: error message
|
||||||
// an empty string as error means success
|
// an empty string as error means success
|
||||||
typedef boost::function<void(int, address, int, int, error_code const&)> portmap_callback_t;
|
typedef boost::function<void(int, address, int, int, error_code const&)> portmap_callback_t;
|
||||||
|
|
|
@ -193,8 +193,8 @@ test-suite libtorrent :
|
||||||
[ run test_priority.cpp ]
|
[ run test_priority.cpp ]
|
||||||
|
|
||||||
# turn these tests into simulations
|
# turn these tests into simulations
|
||||||
# [ run test_upnp.cpp ]
|
[ run test_upnp.cpp ]
|
||||||
# [ run test_lsd.cpp ]
|
[ run test_lsd.cpp ]
|
||||||
;
|
;
|
||||||
|
|
||||||
# these are the tests run on appveyor, while the flapping ones are being
|
# these are the tests run on appveyor, while the flapping ones are being
|
||||||
|
|
|
@ -119,12 +119,12 @@ struct callback_info
|
||||||
|
|
||||||
std::list<callback_info> callbacks;
|
std::list<callback_info> callbacks;
|
||||||
|
|
||||||
void callback(int mapping, address const& ip, int port, error_code const& err)
|
void callback(int mapping, address const& ip, int port, int protocol, error_code const& err)
|
||||||
{
|
{
|
||||||
callback_info info = {mapping, port, err};
|
callback_info info = {mapping, port, err};
|
||||||
callbacks.push_back(info);
|
callbacks.push_back(info);
|
||||||
std::cerr << "mapping: " << mapping << ", port: " << port << ", IP: " << ip
|
std::cerr << "mapping: " << mapping << ", port: " << port << ", IP: " << ip
|
||||||
<< ", error: \"" << err.message() << "\"\n";
|
<< ", proto: " << protocol << ", error: \"" << err.message() << "\"\n";
|
||||||
}
|
}
|
||||||
|
|
||||||
void run_upnp_test(char const* root_filename, char const* router_model, char const* control_name, int igd_version)
|
void run_upnp_test(char const* root_filename, char const* router_model, char const* control_name, int igd_version)
|
||||||
|
|
Loading…
Reference in New Issue