Add a PBD::TextReceiver in pbd testrunner

This commit is contained in:
Tim Mayberry 2014-06-25 10:59:34 +10:00 committed by Paul Davis
parent 24c40c0e88
commit 7262e16216

View file

@ -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;
}