mirror of https://gitee.com/bigwinds/arangodb
manually initialize logger
This commit is contained in:
parent
6887cdbb43
commit
f60a60a4b9
|
@ -1,2 +1,14 @@
|
||||||
#define CATCH_CONFIG_MAIN
|
#define CATCH_CONFIG_RUNNER
|
||||||
#include "catch.hpp"
|
#include "catch.hpp"
|
||||||
|
#include "Logger/Logger.h"
|
||||||
|
|
||||||
|
int main( int argc, char* argv[] )
|
||||||
|
{
|
||||||
|
// global setup...
|
||||||
|
arangodb::Logger::initialize(false);
|
||||||
|
int result = Catch::Session().run( argc, argv );
|
||||||
|
arangodb::Logger::shutdown();
|
||||||
|
// global clean-up...
|
||||||
|
|
||||||
|
return ( result < 0xff ? result : 0xff );
|
||||||
|
}
|
Loading…
Reference in New Issue