From 7bf392060ea82d6cdff00d56fcdab76f35d135ed Mon Sep 17 00:00:00 2001 From: Tim Mayberry Date: Tue, 24 Jun 2014 19:33:10 +1000 Subject: [PATCH] Call PBD::init and PBD::cleanup in pbd test executable --- libs/pbd/test/testrunner.cc | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/libs/pbd/test/testrunner.cc b/libs/pbd/test/testrunner.cc index ea8f0aa115..31f7f3761d 100644 --- a/libs/pbd/test/testrunner.cc +++ b/libs/pbd/test/testrunner.cc @@ -7,11 +7,13 @@ #include #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; + }