summaryrefslogtreecommitdiff
path: root/libs/ardour/test/testrunner.cc
diff options
context:
space:
mode:
Diffstat (limited to 'libs/ardour/test/testrunner.cc')
-rw-r--r--libs/ardour/test/testrunner.cc8
1 files changed, 5 insertions, 3 deletions
diff --git a/libs/ardour/test/testrunner.cc b/libs/ardour/test/testrunner.cc
index 9fa8c82798..2d9a8fc39e 100644
--- a/libs/ardour/test/testrunner.cc
+++ b/libs/ardour/test/testrunner.cc
@@ -11,7 +11,7 @@
#include "pbd/debug.h"
#include "ardour/ardour.h"
-#include "test_util.h"
+#include "test_ui.h"
static const char* localedir = LOCALEDIR;
@@ -51,8 +51,8 @@ main(int argc, char* argv[])
CPPUNIT_ASSERT (ARDOUR::init (false, true, localedir));
- CPPUNIT_ASSERT (test_init ());
-
+ TestUI* test_ui = new TestUI();
+
CppUnit::TestResult testresult;
CppUnit::TestResultCollector collectedresults;
@@ -68,6 +68,8 @@ main(int argc, char* argv[])
CppUnit::CompilerOutputter compileroutputter (&collectedresults, std::cerr);
compileroutputter.write ();
+ delete test_ui;
+
ARDOUR::cleanup ();
return collectedresults.wasSuccessful () ? 0 : 1;