diff --git a/tests/librarybackend_test.cpp b/tests/librarybackend_test.cpp index d8b697b12..c12a6fa60 100644 --- a/tests/librarybackend_test.cpp +++ b/tests/librarybackend_test.cpp @@ -25,9 +25,10 @@ #include -#include -#include +#include #include +#include +#include namespace { @@ -73,7 +74,7 @@ TEST_F(LibraryBackendTest, AddDirectory) { // Check the signal was emitted correctly ASSERT_EQ(1, spy.count()); Directory dir = spy[0][0].value(); - EXPECT_EQ("/tmp", dir.path); + EXPECT_EQ(QFileInfo("/tmp").canonicalFilePath(), dir.path); EXPECT_EQ(1, dir.id); EXPECT_EQ(0, spy[0][1].value().size()); }