diff --git a/tests/main.cpp b/tests/main.cpp index 71fe4c2fd..c607fe03e 100644 --- a/tests/main.cpp +++ b/tests/main.cpp @@ -21,6 +21,11 @@ #include "resources_env.h" #include "metatypes_env.h" +#ifdef WIN32 +# include + Q_IMPORT_PLUGIN(qsqlite) +#endif + int main(int argc, char** argv) { testing::InitGoogleMock(&argc, argv); diff --git a/tests/songplaylistitem_test.cpp b/tests/songplaylistitem_test.cpp index 8528fc88c..4e513555e 100644 --- a/tests/songplaylistitem_test.cpp +++ b/tests/songplaylistitem_test.cpp @@ -40,6 +40,9 @@ class SongPlaylistItemTest : public ::testing::TestWithParam { song_.set_filename(absolute_file_name_); item_.reset(new SongPlaylistItem(song_)); + + if (!absolute_file_name_.startsWith('/')) + absolute_file_name_.prepend('/'); } Song song_;