mirror of https://github.com/aria2/aria2
Set log level DEBUG for unittests
parent
28d5c7408f
commit
e823fe8bb5
|
@ -10,6 +10,8 @@
|
|||
#include "SocketCore.h"
|
||||
#include "util.h"
|
||||
#include "console.h"
|
||||
#include "LogFactory.h"
|
||||
#include "prefs.h"
|
||||
|
||||
int main(int argc, char* argv[]) {
|
||||
aria2::global::initConsole(false);
|
||||
|
@ -33,6 +35,9 @@ int main(int argc, char* argv[]) {
|
|||
// Create output directory
|
||||
aria2::util::mkdirs(A2_TEST_OUT_DIR);
|
||||
|
||||
aria2::LogFactory::setConsoleLogLevel(aria2::V_DEBUG);
|
||||
aria2::LogFactory::reconfigure();
|
||||
|
||||
CppUnit::Test* suite = CppUnit::TestFactoryRegistry::getRegistry().makeTest();
|
||||
CppUnit::TextUi::TestRunner runner;
|
||||
runner.addTest(suite);
|
||||
|
|
Loading…
Reference in New Issue