From c960c820e47894b9e74cd51955156fbee63ac1f4 Mon Sep 17 00:00:00 2001 From: Bionus Date: Sat, 4 Aug 2018 16:47:54 +0200 Subject: [PATCH] Don't run creation date tests on Travis MacOS --- tests/src/functions-test.cpp | 2 ++ tests/src/functions-test.h | 6 ++++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/tests/src/functions-test.cpp b/tests/src/functions-test.cpp index 69cb4a77a..5019a2a65 100644 --- a/tests/src/functions-test.cpp +++ b/tests/src/functions-test.cpp @@ -262,6 +262,7 @@ void FunctionsTest::testParseMarkdownIssueLinks() QCOMPARE(parseMarkdown("issue 123"), QString("issue 123")); } +#if !defined(Q_OS_MACOS) void FunctionsTest::testSetFileCreationDate() { QString path = "tests/resources/pages/behoimi.org/results.json"; @@ -282,6 +283,7 @@ void FunctionsTest::testSetFileCreationDateUtf8() QDateTime created = fileCreationDate(path); QCOMPARE(created.toTime_t(), date.toTime_t()); } +#endif void FunctionsTest::assertFixFilename(int platform, const QString &filename, const QString &path, const QString &expected) diff --git a/tests/src/functions-test.h b/tests/src/functions-test.h index f8874a7b5..0173513dd 100644 --- a/tests/src/functions-test.h +++ b/tests/src/functions-test.h @@ -25,8 +25,10 @@ class FunctionsTest : public TestSuite void testIsUrl(); void testParseMarkdownHeaders(); void testParseMarkdownIssueLinks(); - void testSetFileCreationDate(); - void testSetFileCreationDateUtf8(); + #if !defined(Q_OS_MACOS) + void testSetFileCreationDate(); + void testSetFileCreationDateUtf8(); + #endif protected: void assertFixFilename(int platform, const QString &filename, const QString &path, const QString &expected);