diff options
Diffstat (limited to 'test')
-rw-r--r-- | test/test_translate_song.cxx | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/test/test_translate_song.cxx b/test/test_translate_song.cxx index 6ef3a13f5..bcd3e8646 100644 --- a/test/test_translate_song.cxx +++ b/test/test_translate_song.cxx @@ -38,9 +38,8 @@ uri_supported_scheme(const char *uri) return memcmp(uri, "http://", 7) == 0; } -const char *const music_directory = "/music"; -static Storage *const storage = CreateLocalStorage(music_directory, - Path::FromFS(music_directory)); +static const char *const music_directory = "/music"; +static Storage *storage; static void BuildTag(gcc_unused TagBuilder &tag) @@ -308,6 +307,8 @@ CPPUNIT_TEST_SUITE_REGISTRATION(TranslateSongTest); int main(gcc_unused int argc, gcc_unused char **argv) { + storage = CreateLocalStorage(Path::FromFS(music_directory)); + CppUnit::TextUi::TestRunner runner; auto ®istry = CppUnit::TestFactoryRegistry::getRegistry(); runner.addTest(registry.makeTest()); |