diff options
author | Ross Burton <rburton@src.gnome.org> | 2003-10-31 12:29:11 +0000 |
---|---|---|
committer | Ross Burton <rburton@src.gnome.org> | 2003-10-31 12:29:11 +0000 |
commit | 92742be3f30002293e8bcb6c3975817acd05278d (patch) | |
tree | a8463b0ca0535bd68298ccc1e6fe28514391f494 /tests | |
parent | df1289f88d62e1f2ebf4992e572052422bc8e19e (diff) |
Make the tests work
Diffstat (limited to 'tests')
-rw-r--r-- | tests/Makefile.am | 2 | ||||
-rw-r--r-- | tests/mb-test.c | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/tests/Makefile.am b/tests/Makefile.am index 273d686..135c65b 100644 --- a/tests/Makefile.am +++ b/tests/Makefile.am @@ -21,4 +21,4 @@ mb_test_SOURCES = \ $(top_srcdir)/src/transport.hxx \ $(top_srcdir)/src/dvd_plus_rw_utils.cpp -mb_test_LDADD = @GLIB_LIBS@ @MUSICBRAINZ_LIBS@ -lgobject-2.0 +mb_test_LDADD = @GLIB_LIBS@ @MUSICBRAINZ_LIBS@ diff --git a/tests/mb-test.c b/tests/mb-test.c index 1ef9ec7..ddc0b4e 100644 --- a/tests/mb-test.c +++ b/tests/mb-test.c @@ -36,12 +36,12 @@ int main (int argc, char** argv) GMainLoop *loop; g_type_init (); + g_thread_init (NULL); + metadata = (SjMetadata*)sj_metadata_musicbrainz_new (); if (argc == 2) { sj_metadata_set_cdrom (metadata, argv[1]); - } else if (argc == 1) { - sj_metadata_set_cdrom (metadata, "/dev/cdroms/cdrom0"); } else { g_print ("Usage: %s [CD device]\n", argv[0]); exit (1); |