Skip to content

Commit

Permalink
Don't run creation date tests on Travis MacOS
Browse files Browse the repository at this point in the history
  • Loading branch information
Bionus committed Aug 4, 2018
1 parent 9d5e694 commit 0c8bdc6
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 2 additions & 0 deletions tests/src/functions-test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -262,6 +262,7 @@ void FunctionsTest::testParseMarkdownIssueLinks()
QCOMPARE(parseMarkdown("issue 123"), QString("issue 123"));
}

#if !defined(TRAVIS)
void FunctionsTest::testSetFileCreationDate()
{
QString path = "tests/resources/pages/behoimi.org/results.json";
Expand All @@ -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)
Expand Down
6 changes: 4 additions & 2 deletions tests/src/functions-test.h
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,10 @@ class FunctionsTest : public TestSuite
void testIsUrl();
void testParseMarkdownHeaders();
void testParseMarkdownIssueLinks();
void testSetFileCreationDate();
void testSetFileCreationDateUtf8();
#if !defined(TRAVIS)
void testSetFileCreationDate();
void testSetFileCreationDateUtf8();
#endif

protected:
void assertFixFilename(int platform, const QString &filename, const QString &path, const QString &expected);
Expand Down

0 comments on commit 0c8bdc6

Please sign in to comment.