comparison tests/src/irccdctl/cli-server-disconnect/main.cpp @ 803:14f9e3b03779

tests: don't store IRCCDCTL_EXECUTABLE, closes #949 @1h
author David Demelier <markand@malikania.fr>
date Tue, 13 Nov 2018 20:21:18 +0100
parents 8c44bbcbbab9
children 8460b4a34191
comparison
equal deleted inserted replaced
802:f26bb089232d 803:14f9e3b03779
25 25
26 namespace irccd { 26 namespace irccd {
27 27
28 namespace { 28 namespace {
29 29
30 BOOST_FIXTURE_TEST_SUITE(server_disconnect_suite, cli_fixture) 30 class server_disconnect_fixture : public cli_fixture {
31 public:
32 server_disconnect_fixture()
33 : cli_fixture(IRCCDCTL_EXECUTABLE)
34 {
35 }
36 };
37
38 BOOST_FIXTURE_TEST_SUITE(server_disconnect_suite, server_disconnect_fixture)
31 39
32 BOOST_AUTO_TEST_CASE(one) 40 BOOST_AUTO_TEST_CASE(one)
33 { 41 {
34 const auto s1 = std::make_shared<mock_server>(irccd_.get_service(), "s1", "localhost"); 42 const auto s1 = std::make_shared<mock_server>(irccd_.get_service(), "s1", "localhost");
35 const auto s2 = std::make_shared<mock_server>(irccd_.get_service(), "s2", "localhost"); 43 const auto s2 = std::make_shared<mock_server>(irccd_.get_service(), "s2", "localhost");