1
0
mirror of https://github.com/clementine-player/Clementine synced 2024-12-18 12:28:31 +01:00

Fix this test on Windows

This commit is contained in:
David Sansome 2011-03-13 19:22:41 +00:00
parent 3ba97ead0b
commit b271c714b8

View File

@ -25,9 +25,10 @@
#include <boost/scoped_ptr.hpp> #include <boost/scoped_ptr.hpp>
#include <QtDebug> #include <QFileInfo>
#include <QThread>
#include <QSignalSpy> #include <QSignalSpy>
#include <QThread>
#include <QtDebug>
namespace { namespace {
@ -73,7 +74,7 @@ TEST_F(LibraryBackendTest, AddDirectory) {
// Check the signal was emitted correctly // Check the signal was emitted correctly
ASSERT_EQ(1, spy.count()); ASSERT_EQ(1, spy.count());
Directory dir = spy[0][0].value<Directory>(); Directory dir = spy[0][0].value<Directory>();
EXPECT_EQ("/tmp", dir.path); EXPECT_EQ(QFileInfo("/tmp").canonicalFilePath(), dir.path);
EXPECT_EQ(1, dir.id); EXPECT_EQ(1, dir.id);
EXPECT_EQ(0, spy[0][1].value<SubdirectoryList>().size()); EXPECT_EQ(0, spy[0][1].value<SubdirectoryList>().size());
} }