From 29ba8d5bd335ff59e7736745c1c197dc2f7fe2a3 Mon Sep 17 00:00:00 2001 From: David Sansome Date: Wed, 31 Mar 2010 19:33:12 +0000 Subject: [PATCH] Fix tests on windows --- tests/main.cpp | 5 +++++ tests/songplaylistitem_test.cpp | 3 +++ 2 files changed, 8 insertions(+) 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_;