aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2014-10-07 19:45:40 +0200
committerMax Kellermann <max@duempel.org>2014-10-09 07:45:25 +0200
commit3d2558bde6cebd6b628935f2852572cc7bb6eeab (patch)
treea2dcb1624f8d24cde3918c9ee955aae911c45417 /test
parent1aac0b10c9499db77cbe39e43a0abc8cccc72079 (diff)
downloadmpd-3d2558bde6cebd6b628935f2852572cc7bb6eeab.tar.gz
mpd-3d2558bde6cebd6b628935f2852572cc7bb6eeab.tar.xz
mpd-3d2558bde6cebd6b628935f2852572cc7bb6eeab.zip
StoragePlugin: pass EventLoop to constructor
Diffstat (limited to 'test')
-rw-r--r--test/run_storage.cxx5
1 files changed, 4 insertions, 1 deletions
diff --git a/test/run_storage.cxx b/test/run_storage.cxx
index 45575b9e0..9fc6e6e76 100644
--- a/test/run_storage.cxx
+++ b/test/run_storage.cxx
@@ -18,6 +18,7 @@
*/
#include "config.h"
+#include "ScopeIOThread.hxx"
#include "storage/Registry.hxx"
#include "storage/StorageInterface.hxx"
#include "storage/FileInfo.hxx"
@@ -38,7 +39,7 @@ static Storage *
MakeStorage(const char *uri)
{
Error error;
- Storage *storage = CreateStorageURI(uri, error);
+ Storage *storage = CreateStorageURI(io_thread_get(), uri, error);
if (storage == nullptr) {
fprintf(stderr, "%s\n", error.GetMessage());
exit(EXIT_FAILURE);
@@ -112,6 +113,8 @@ main(int argc, char **argv)
const char *const command = argv[1];
const char *const storage_uri = argv[2];
+ const ScopeIOThread io_thread;
+
if (strcmp(command, "ls") == 0) {
if (argc != 4) {
fprintf(stderr, "Usage: run_storage ls URI PATH\n");