Call PBD::init and PBD::cleanup in pbd test executable

This commit is contained in:
Tim Mayberry 2014-06-24 19:33:10 +10:00 committed by Paul Davis
parent 7338c4e242
commit 7bf392060e

View file

@ -7,11 +7,13 @@
#include <glibmm/thread.h>
#include "scalar_properties.h"
#include "pbd/pbd.h"
int
main ()
{
Glib::thread_init();
if (!PBD::init ()) return 1;
ScalarPropertiesTest::make_property_quarks ();
@ -29,6 +31,9 @@ main ()
CppUnit::CompilerOutputter compileroutputter (&collectedresults, std::cerr);
compileroutputter.write ();
PBD::cleanup ();
return collectedresults.wasSuccessful () ? 0 : 1;
}