From b26db062d23a54357695522680b196d0ad89558b Mon Sep 17 00:00:00 2001 From: Jocelyn Turcotte Date: Tue, 7 Feb 2017 19:31:55 +0100 Subject: Fix the UNIT_TESTING build on Windows - Put all tests in the bin directory so that DLLs can be loaded - Add missing exports - Skip tests that use code depending on zlib - The "GMT" timezone is named differently, use the int constructor instead 5 tests are still failing, it's not really worth fixing at the moment since no developper is currently using Windows as its main platform. --- test/syncenginetestutils.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'test/syncenginetestutils.h') diff --git a/test/syncenginetestutils.h b/test/syncenginetestutils.h index 5a938a99a..232cd419d 100644 --- a/test/syncenginetestutils.h +++ b/test/syncenginetestutils.h @@ -345,7 +345,7 @@ public: } else xml.writeEmptyElement(davUri, QStringLiteral("resourcetype")); - auto gmtDate = fileInfo.lastModified.toTimeZone(QTimeZone("GMT")); + auto gmtDate = fileInfo.lastModified.toTimeZone(QTimeZone(0)); auto stringDate = gmtDate.toString("ddd, dd MMM yyyy HH:mm:ss 'GMT'"); xml.writeTextElement(davUri, QStringLiteral("getlastmodified"), stringDate); xml.writeTextElement(davUri, QStringLiteral("getcontentlength"), QString::number(fileInfo.size)); -- cgit v1.2.3