diff --git a/tests/TestOpenSSHKey.cpp b/tests/TestOpenSSHKey.cpp index 52cf4dbf5..949c708cf 100644 --- a/tests/TestOpenSSHKey.cpp +++ b/tests/TestOpenSSHKey.cpp @@ -16,11 +16,17 @@ */ #include "TestOpenSSHKey.h" +#include "crypto/Crypto.h" #include "sshagent/OpenSSHKey.h" #include QTEST_GUILESS_MAIN(TestOpenSSHKey) +void TestOpenSSHKey::initTestCase() +{ + QVERIFY(Crypto::init()); +} + void TestOpenSSHKey::testParse() { // mixed line endings and missing ones are intentional, we only require 3 lines total diff --git a/tests/TestOpenSSHKey.h b/tests/TestOpenSSHKey.h index 92a071f6a..f2d6d1fb9 100644 --- a/tests/TestOpenSSHKey.h +++ b/tests/TestOpenSSHKey.h @@ -27,6 +27,7 @@ class TestOpenSSHKey : public QObject Q_OBJECT private slots: + void initTestCase(); void testParse(); void testDecryptAES256CBC(); void testDecryptAES256CTR();