comparison tests/plugin-logger/main.cpp @ 486:0b156b82b8c1

Irccd: rework of paths, closes #611
author David Demelier <markand@malikania.fr>
date Thu, 20 Jul 2017 15:12:41 +0200
parents 8b615d37d303
children beb6c638b841
comparison
equal deleted inserted replaced
485:daf3aa8b2ddb 486:0b156b82b8c1
23 23
24 #include <irccd/irccd.hpp> 24 #include <irccd/irccd.hpp>
25 #include <irccd/logger.hpp> 25 #include <irccd/logger.hpp>
26 #include <irccd/server.hpp> 26 #include <irccd/server.hpp>
27 #include <irccd/service.hpp> 27 #include <irccd/service.hpp>
28 #include <irccd/path.hpp>
29 28
30 #include "plugin-tester.hpp" 29 #include "plugin-tester.hpp"
31 30
32 using namespace irccd; 31 using namespace irccd;
33 32
191 ASSERT_EQ("message=test:#staff:jean!jean@localhost:jean:hello guys\n", last()); 190 ASSERT_EQ("message=test:#staff:jean!jean@localhost:jean:hello guys\n", last());
192 } 191 }
193 192
194 int main(int argc, char **argv) 193 int main(int argc, char **argv)
195 { 194 {
196 path::setApplicationPath(argv[0]);
197 testing::InitGoogleTest(&argc, argv); 195 testing::InitGoogleTest(&argc, argv);
198 log::setLogger(std::make_unique<log::SilentLogger>()); 196 log::setLogger(std::make_unique<log::SilentLogger>());
199 197
200 return RUN_ALL_TESTS(); 198 return RUN_ALL_TESTS();
201 } 199 }