mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-11 17:16:38 +01:00
Add a PBD::TextReceiver in pbd testrunner
This commit is contained in:
parent
24c40c0e88
commit
7262e16216
1 changed files with 9 additions and 2 deletions
|
|
@ -8,13 +8,21 @@
|
||||||
#include "scalar_properties.h"
|
#include "scalar_properties.h"
|
||||||
|
|
||||||
#include "pbd/pbd.h"
|
#include "pbd/pbd.h"
|
||||||
|
#include "pbd/error.h"
|
||||||
|
#include "pbd/textreceiver.h"
|
||||||
|
|
||||||
int
|
int
|
||||||
main ()
|
main ()
|
||||||
{
|
{
|
||||||
|
TextReceiver text_receiver ("pbd_test");
|
||||||
|
|
||||||
if (!PBD::init ()) return 1;
|
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 ();
|
ScalarPropertiesTest::make_property_quarks ();
|
||||||
|
|
||||||
CppUnit::TestResult testresult;
|
CppUnit::TestResult testresult;
|
||||||
|
|
@ -35,5 +43,4 @@ main ()
|
||||||
PBD::cleanup ();
|
PBD::cleanup ();
|
||||||
|
|
||||||
return collectedresults.wasSuccessful () ? 0 : 1;
|
return collectedresults.wasSuccessful () ? 0 : 1;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue