Minor test changes

* Fix warning in test/CMakeLists.txt
* Fix router name check in test_upnp
This commit is contained in:
d_komarov 2018-02-20 13:32:47 +02:00 committed by Arvid Norberg
parent eec34e3ac3
commit eb9f7c488b
2 changed files with 2 additions and 2 deletions

View File

@ -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)

View File

@ -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));