summaryrefslogtreecommitdiff
path: root/libs/pbd/test
diff options
context:
space:
mode:
authorTim Mayberry <mojofunk@gmail.com>2014-06-24 19:33:10 +1000
committerPaul Davis <paul@linuxaudiosystems.com>2014-06-25 12:40:11 -0400
commit7bf392060ea82d6cdff00d56fcdab76f35d135ed (patch)
tree1464f3dba5488d21ff5964dad337b6582409ae19 /libs/pbd/test
parent7338c4e242f9448668238d26d9f64c46e4ace737 (diff)
Call PBD::init and PBD::cleanup in pbd test executable
Diffstat (limited to 'libs/pbd/test')
-rw-r--r--libs/pbd/test/testrunner.cc9
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;
+
}