Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/keepassxreboot/keepassxc.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFelix Geyer <debfx@fobos.de>2014-06-15 13:17:40 +0400
committerFelix Geyer <debfx@fobos.de>2014-06-15 13:17:40 +0400
commit0d6117bf4c0ac1e604c5b2fa0dcf8d5d47c46a58 (patch)
treecb3421a2438fc659ffe91b31a1170832f0dbf7f0 /tests/TestCryptoHash.cpp
parentb417bf91873ae760031cdc821d4e411701da71f5 (diff)
Do some basic self-checks when initializing the crypto backend.
Diffstat (limited to 'tests/TestCryptoHash.cpp')
-rw-r--r--tests/TestCryptoHash.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/TestCryptoHash.cpp b/tests/TestCryptoHash.cpp
index d189d456c..eb26ca83f 100644
--- a/tests/TestCryptoHash.cpp
+++ b/tests/TestCryptoHash.cpp
@@ -27,13 +27,13 @@ QTEST_GUILESS_MAIN(TestCryptoHash)
void TestCryptoHash::initTestCase()
{
- Crypto::init();
+ QVERIFY(Crypto::init());
}
void TestCryptoHash::test()
{
// TODO: move somewhere else
- QVERIFY(Crypto::selfTest());
+ QVERIFY(Crypto::backendSelfTest());
CryptoHash cryptoHash1(CryptoHash::Sha256);
QCOMPARE(cryptoHash1.result(),