aboutsummaryrefslogtreecommitdiffstats
path: root/test/run_input.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/run_input.c')
-rw-r--r--test/run_input.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/test/run_input.c b/test/run_input.c
index 5d74473e3..bd66a1b1a 100644
--- a/test/run_input.c
+++ b/test/run_input.c
@@ -18,6 +18,7 @@
*/
#include "config.h"
+#include "input_init.h"
#include "input_stream.h"
#include "tag_pool.h"
#include "tag_save.h"
@@ -90,6 +91,7 @@ dump_input_stream(struct input_stream *is)
int main(int argc, char **argv)
{
+ GError *error = NULL;
struct input_stream is;
int ret;
@@ -112,7 +114,11 @@ int main(int argc, char **argv)
archive_plugin_init_all();
#endif
- input_stream_global_init();
+ if (!input_stream_global_init(&error)) {
+ g_warning("%s", error->message);
+ g_error_free(error);
+ return 2;
+ }
/* open the stream and dump it */