benchmark: correctly position memory cleanup
This commit is contained in:
parent
9da198631b
commit
9cc76de27d
1 changed files with 4 additions and 2 deletions
|
@ -67,14 +67,16 @@ void handle_args(int argc, char** argv, mapnik::parameters & params)
|
|||
mapnik::parameters params; \
|
||||
benchmark::handle_args(argc,argv,params); \
|
||||
test_class test_runner(params); \
|
||||
return run(test_runner,name); \
|
||||
auto result = run(test_runner,name); \
|
||||
testing::run_cleanup(); \
|
||||
return result; \
|
||||
} \
|
||||
catch (std::exception const& ex) \
|
||||
{ \
|
||||
std::clog << ex.what() << "\n"; \
|
||||
testing::run_cleanup(); \
|
||||
return -1; \
|
||||
} \
|
||||
testing::run_cleanup(); \
|
||||
} \
|
||||
|
||||
template <typename T>
|
||||
|
|
Loading…
Add table
Reference in a new issue