diff options
-rw-r--r-- | libs/pbd/test/testrunner.cc | 9 |
1 files 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 <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; + } |