aboutsummaryrefslogtreecommitdiffstats
path: root/test/run_storage.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'test/run_storage.cxx')
-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");