Fix tests on windows

This commit is contained in:
David Sansome 2010-03-31 19:33:12 +00:00
parent ce43f8dbf9
commit 29ba8d5bd3
2 changed files with 8 additions and 0 deletions

View File

@ -21,6 +21,11 @@
#include "resources_env.h"
#include "metatypes_env.h"
#ifdef WIN32
# include <QtPlugin>
Q_IMPORT_PLUGIN(qsqlite)
#endif
int main(int argc, char** argv) {
testing::InitGoogleMock(&argc, argv);

View File

@ -40,6 +40,9 @@ class SongPlaylistItemTest : public ::testing::TestWithParam<const char*> {
song_.set_filename(absolute_file_name_);
item_.reset(new SongPlaylistItem(song_));
if (!absolute_file_name_.startsWith('/'))
absolute_file_name_.prepend('/');
}
Song song_;