diff options
author | Cristian Adam <cristian.adam@qt.io> | 2019-09-10 13:13:30 +0200 |
---|---|---|
committer | Cristian Adam <cristian.adam@qt.io> | 2019-09-10 15:05:59 +0000 |
commit | 486aaabd2141b4a7df58829d924a4a7ed23e69c7 (patch) | |
tree | 92dc127c0720d1a1080b4c3f7817ecbad669a93d /tests/unit | |
parent | 62d16e437a0faf2de55284c19ac6a08797c8d127 (diff) | |
download | qt-creator-486aaabd2141b4a7df58829d924a4a7ed23e69c7.tar.gz |
CMake Build: Use same Qt compiler defines for tests
Source code needed adjustments though.
Change-Id: I78b4610a6bb895a385c7c30a6c92c97a276b89dd
Reviewed-by: hjk <hjk@qt.io>
Diffstat (limited to 'tests/unit')
-rw-r--r-- | tests/unit/unittest/builddependencycollector-test.cpp | 2 | ||||
-rw-r--r-- | tests/unit/unittest/symbolscollector-test.cpp | 2 | ||||
-rw-r--r-- | tests/unit/unittest/usedmacrocollector-test.cpp | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/tests/unit/unittest/builddependencycollector-test.cpp b/tests/unit/unittest/builddependencycollector-test.cpp index 7bfe6de4cc..5be0689ef6 100644 --- a/tests/unit/unittest/builddependencycollector-test.cpp +++ b/tests/unit/unittest/builddependencycollector-test.cpp @@ -128,7 +128,7 @@ protected: static std::time_t lastModified(Utils::SmallStringView filePath) { - return QFileInfo(QString(filePath)).lastModified().toTime_t(); + return QFileInfo(QString(filePath)).lastModified().toSecsSinceEpoch(); } ClangBackEnd::FileStatus fileStatus(Utils::SmallStringView filePath) const diff --git a/tests/unit/unittest/symbolscollector-test.cpp b/tests/unit/unittest/symbolscollector-test.cpp index 4719030737..5954f8a9f5 100644 --- a/tests/unit/unittest/symbolscollector-test.cpp +++ b/tests/unit/unittest/symbolscollector-test.cpp @@ -146,7 +146,7 @@ protected: static std::time_t lastModified(Utils::SmallStringView filePath) { - return QFileInfo(QString(filePath)).lastModified().toTime_t(); + return QFileInfo(QString(filePath)).lastModified().toSecsSinceEpoch(); } ClangBackEnd::FileStatus fileStatus(Utils::SmallStringView filePath) const diff --git a/tests/unit/unittest/usedmacrocollector-test.cpp b/tests/unit/unittest/usedmacrocollector-test.cpp index 31aa4fab38..191662db6b 100644 --- a/tests/unit/unittest/usedmacrocollector-test.cpp +++ b/tests/unit/unittest/usedmacrocollector-test.cpp @@ -63,7 +63,7 @@ protected: static std::time_t lastModified(Utils::SmallStringView filePath) { - return QFileInfo(QString(filePath)).lastModified().toTime_t(); + return QFileInfo(QString(filePath)).lastModified().toSecsSinceEpoch(); } ClangBackEnd::FileStatus fileStatus(Utils::SmallStringView filePath) const |