From a0bfa710beaeff9dea963d858e250bc6a9a84cfb Mon Sep 17 00:00:00 2001 From: Toni Spets Date: Sat, 25 Nov 2017 11:31:31 +0200 Subject: [PATCH] Add missing crypto init to OpenSSHKey test --- tests/TestOpenSSHKey.cpp | 6 ++++++ tests/TestOpenSSHKey.h | 1 + 2 files changed, 7 insertions(+) diff --git a/tests/TestOpenSSHKey.cpp b/tests/TestOpenSSHKey.cpp index 52cf4dbf..949c708c 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 92a071f6..f2d6d1fb 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();