summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorMarc Mutz <marc.mutz@kdab.com>2021-07-14 22:52:08 +0200
committerMarc Mutz <marc.mutz@kdab.com>2021-07-27 18:11:59 +0200
commit84e1fa3800b658b0a02033ddfeba642a569a2968 (patch)
treec05e615e158b570b0ab4df03ba01bf97441c8de6 /tests
parent3bc70954ee515d0831cf7f506281d95b85c4f3de (diff)
QCryptographicHash test: remove the moreThan4GiBOfData(SHA512) check from the CI
It timed out the other day on the CI. Even the SHA-1 check took 137s (with a 300s timeout). Skip the SHA-512 test on the CI, but keep it for manual runs. Change-Id: I49792ac9bcab6512e1803f66cd986b2830e634c0 Reviewed-by: MÃ¥rten Nordheim <marten.nordheim@qt.io> (cherry picked from commit c6e092a5f84b7fc72556897b50c7697152967925) Reviewed-by: Edward Welbourne <edward.welbourne@qt.io>
Diffstat (limited to 'tests')
-rw-r--r--tests/auto/corelib/tools/qcryptographichash/tst_qcryptographichash.cpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/tests/auto/corelib/tools/qcryptographichash/tst_qcryptographichash.cpp b/tests/auto/corelib/tools/qcryptographichash/tst_qcryptographichash.cpp
index 92a2c3516c..b7982bc397 100644
--- a/tests/auto/corelib/tools/qcryptographichash/tst_qcryptographichash.cpp
+++ b/tests/auto/corelib/tools/qcryptographichash/tst_qcryptographichash.cpp
@@ -453,8 +453,11 @@ void tst_QCryptographicHash::moreThan4GiBOfData_data()
row(QCryptographicHash::Md4);
row(QCryptographicHash::Md5);
row(QCryptographicHash::Sha1);
- // this is already significantly slower, but important (O(min)
- row(QCryptographicHash::Sha512);
+ if (!qgetenv("QTEST_ENVIRONMENT").split(' ').contains("ci")) {
+ // This is important but so slow (O(minute)) that, on CI, it tends to time out.
+ // Retain it for manual runs, all the same, as most dev machines will be fast enough.
+ row(QCryptographicHash::Sha512);
+ }
// the rest is just too slow
#else
QSKIP("This test is 64-bit only.");