From b271c714b88b231ac78b59c04f1a4b4e7f2071f4 Mon Sep 17 00:00:00 2001 From: David Sansome Date: Sun, 13 Mar 2011 19:22:41 +0000 Subject: [PATCH] Fix this test on Windows --- tests/librarybackend_test.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) 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()); }