forked from premiere/premiere-libtorrent
Minor test changes
* Fix warning in test/CMakeLists.txt * Fix router name check in test_upnp
This commit is contained in:
parent
eec34e3ac3
commit
eb9f7c488b
|
@ -18,7 +18,7 @@ foreach(TARGET_SRC ${tests})
|
|||
add_executable(${TARGET} ${TARGET_SRC} $<TARGET_OBJECTS:test_common>)
|
||||
target_link_libraries(${TARGET} torrent-rasterbar)
|
||||
add_test(${TARGET} ${TARGET})
|
||||
endforeach(s)
|
||||
endforeach()
|
||||
|
||||
if (deprecated-functions)
|
||||
add_executable(bdecode_benchmark bdecode_benchmark.cpp)
|
||||
|
|
|
@ -181,7 +181,7 @@ void run_upnp_test(char const* root_filename, char const* router_model, char con
|
|||
}
|
||||
|
||||
std::cerr << "router: " << upnp_handler->router_model() << std::endl;
|
||||
//TEST_EQUAL(upnp_handler->router_model(), router_model);
|
||||
TEST_CHECK(!upnp_handler->router_model().empty());
|
||||
|
||||
int mapping1 = upnp_handler->add_mapping(upnp::tcp, 500, ep("127.0.0.1", 500));
|
||||
int mapping2 = upnp_handler->add_mapping(upnp::udp, 501, ep("127.0.0.1", 501));
|
||||
|
|
Loading…
Reference in New Issue