Fix tests on windows
This commit is contained in:
parent
ce43f8dbf9
commit
29ba8d5bd3
@ -21,6 +21,11 @@
|
|||||||
#include "resources_env.h"
|
#include "resources_env.h"
|
||||||
#include "metatypes_env.h"
|
#include "metatypes_env.h"
|
||||||
|
|
||||||
|
#ifdef WIN32
|
||||||
|
# include <QtPlugin>
|
||||||
|
Q_IMPORT_PLUGIN(qsqlite)
|
||||||
|
#endif
|
||||||
|
|
||||||
int main(int argc, char** argv) {
|
int main(int argc, char** argv) {
|
||||||
testing::InitGoogleMock(&argc, argv);
|
testing::InitGoogleMock(&argc, argv);
|
||||||
|
|
||||||
|
@ -40,6 +40,9 @@ class SongPlaylistItemTest : public ::testing::TestWithParam<const char*> {
|
|||||||
song_.set_filename(absolute_file_name_);
|
song_.set_filename(absolute_file_name_);
|
||||||
|
|
||||||
item_.reset(new SongPlaylistItem(song_));
|
item_.reset(new SongPlaylistItem(song_));
|
||||||
|
|
||||||
|
if (!absolute_file_name_.startsWith('/'))
|
||||||
|
absolute_file_name_.prepend('/');
|
||||||
}
|
}
|
||||||
|
|
||||||
Song song_;
|
Song song_;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user