mirror of
https://github.com/aria2/aria2.git
synced 2026-04-11 15:29:02 +00:00
Set log level DEBUG for unittests
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user