diff options
author | Tim Mayberry <mojofunk@gmail.com> | 2014-06-25 10:59:34 +1000 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2014-06-25 12:40:11 -0400 |
commit | 7262e16216ecaade333093e1646b5801cf9fbe9c (patch) | |
tree | 5184972a4004e70efc1dbef6ca1a13385653e402 /libs/pbd/test | |
parent | 24c40c0e88ce25d79608c09b7dbc6b63009dab24 (diff) |
Add a PBD::TextReceiver in pbd testrunner
Diffstat (limited to 'libs/pbd/test')
-rw-r--r-- | libs/pbd/test/testrunner.cc | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/libs/pbd/test/testrunner.cc b/libs/pbd/test/testrunner.cc index 31f7f3761d..11f60f46a2 100644 --- a/libs/pbd/test/testrunner.cc +++ b/libs/pbd/test/testrunner.cc @@ -8,13 +8,21 @@ #include "scalar_properties.h" #include "pbd/pbd.h" - +#include "pbd/error.h" +#include "pbd/textreceiver.h" int main () { + TextReceiver text_receiver ("pbd_test"); + if (!PBD::init ()) return 1; + text_receiver.listen_to (PBD::error); + text_receiver.listen_to (PBD::info); + text_receiver.listen_to (PBD::fatal); + text_receiver.listen_to (PBD::warning); + ScalarPropertiesTest::make_property_quarks (); CppUnit::TestResult testresult; @@ -35,5 +43,4 @@ main () PBD::cleanup (); return collectedresults.wasSuccessful () ? 0 : 1; - } |