aboutsummaryrefslogtreecommitdiffstats
path: root/test/run_output.cxx
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2013-01-15 07:53:44 +0100
committerMax Kellermann <max@duempel.org>2013-01-15 18:18:00 +0100
commit2101daef5a939d41a306fcccf2d94992f82723e2 (patch)
treec49c0b8cbd4fd08773a3b3e47768f63801a8b097 /test/run_output.cxx
parent083065f433cb513156878a33ebe5723ae27057da (diff)
downloadmpd-2101daef5a939d41a306fcccf2d94992f82723e2.tar.gz
mpd-2101daef5a939d41a306fcccf2d94992f82723e2.tar.xz
mpd-2101daef5a939d41a306fcccf2d94992f82723e2.zip
mixer/Alsa: use MultiSocketMonitor
Diffstat (limited to 'test/run_output.cxx')
-rw-r--r--test/run_output.cxx8
1 files changed, 8 insertions, 0 deletions
diff --git a/test/run_output.cxx b/test/run_output.cxx
index 29fb6462c..505423479 100644
--- a/test/run_output.cxx
+++ b/test/run_output.cxx
@@ -21,6 +21,8 @@
#include "OutputControl.hxx"
#include "conf.h"
#include "Idle.hxx"
+#include "Main.hxx"
+#include "event/Loop.hxx"
#include "GlobalEvents.hxx"
#include "IOThread.hxx"
@@ -42,6 +44,8 @@ extern "C" {
#include <unistd.h>
#include <stdlib.h>
+EventLoop *main_loop;
+
void
GlobalEvents::Emit(gcc_unused Event event)
{
@@ -211,6 +215,8 @@ int main(int argc, char **argv)
return 1;
}
+ main_loop = new EventLoop(EventLoop::Default());
+
io_thread_init();
if (!io_thread_start(&error)) {
g_warning("%s", error->message);
@@ -247,6 +253,8 @@ int main(int argc, char **argv)
io_thread_deinit();
+ delete main_loop;
+
config_global_finish();
return success ? EXIT_SUCCESS : EXIT_FAILURE;