diff options
author | Tim Mayberry <mojofunk@gmail.com> | 2014-06-24 19:33:10 +1000 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2014-06-25 12:40:11 -0400 |
commit | 7bf392060ea82d6cdff00d56fcdab76f35d135ed (patch) | |
tree | 1464f3dba5488d21ff5964dad337b6582409ae19 /libs/pbd/test | |
parent | 7338c4e242f9448668238d26d9f64c46e4ace737 (diff) |
Call PBD::init and PBD::cleanup in pbd test executable
Diffstat (limited to 'libs/pbd/test')
-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; + } |