diff options
author | Andreas Baumann <mail@andreasbaumann.cc> | 2021-07-18 09:57:15 +0200 |
---|---|---|
committer | Andreas Baumann <mail@andreasbaumann.cc> | 2021-07-18 09:57:15 +0200 |
commit | 108a094755e5795269ddadb678120f307c1c5160 (patch) | |
tree | 0e746f28fce99c3501bbac27e1b986f9b162ab6d /core/gpgme/fix-qt-test-t-various-for-i386.patch | |
parent | 52e414dcad8ec2765e88a0429174f50e42077ed9 (diff) | |
download | packages-108a094755e5795269ddadb678120f307c1c5160.tar.xz |
core/gpgme: fixes for some broken tests
Diffstat (limited to 'core/gpgme/fix-qt-test-t-various-for-i386.patch')
-rw-r--r-- | core/gpgme/fix-qt-test-t-various-for-i386.patch | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/core/gpgme/fix-qt-test-t-various-for-i386.patch b/core/gpgme/fix-qt-test-t-various-for-i386.patch new file mode 100644 index 00000000..26b64fd5 --- /dev/null +++ b/core/gpgme/fix-qt-test-t-various-for-i386.patch @@ -0,0 +1,16 @@ + lang/qt/tests/t-various.cpp | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/lang/qt/tests/t-various.cpp b/lang/qt/tests/t-various.cpp +index 8563b68..059462e 100644 +--- a/lang/qt/tests/t-various.cpp ++++ b/lang/qt/tests/t-various.cpp +@@ -355,7 +355,7 @@ private Q_SLOTS: + target.update(); + const auto keySignature = target.userID(0).signature(target.userID(0).numSignatures() - 1); + QVERIFY(!keySignature.neverExpires()); +- const auto expirationDate = QDateTime::fromSecsSinceEpoch(keySignature.expirationTime()).date(); ++ const auto expirationDate = QDateTime::fromTime_t(keySignature.expirationTime()).date(); + QCOMPARE(expirationDate, QDate(2106, 2, 6)); // expiration date is capped at 2106-02-06 + } + |