summaryrefslogtreecommitdiff
path: root/unittest/test_HOTP.cc
diff options
context:
space:
mode:
authorSzczepan Zalega <szczepan@nitrokey.com>2017-01-31 18:53:14 +0100
committerSzczepan Zalega <szczepan@nitrokey.com>2017-03-11 15:41:41 +0100
commit43bb63424fb7e78c245341c1baf326557ef896e8 (patch)
treee54c0877e144292e644bfdb54fd60283cac5a6b7 /unittest/test_HOTP.cc
parent9bc6b85e12d73a43b8d85ba109acff8778f4c08a (diff)
downloadlibnitrokey-43bb63424fb7e78c245341c1baf326557ef896e8.tar.gz
libnitrokey-43bb63424fb7e78c245341c1baf326557ef896e8.tar.bz2
C++ tests fixed
Signed-off-by: Szczepan Zalega <szczepan@nitrokey.com>
Diffstat (limited to 'unittest/test_HOTP.cc')
-rw-r--r--unittest/test_HOTP.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/unittest/test_HOTP.cc b/unittest/test_HOTP.cc
index d31df55..c6b62a3 100644
--- a/unittest/test_HOTP.cc
+++ b/unittest/test_HOTP.cc
@@ -34,8 +34,8 @@ TEST_CASE("test secret", "[functions]") {
}
TEST_CASE("Test HOTP codes according to RFC", "[HOTP]") {
- Stick10 stick;
- bool connected = stick.connect();
+ std::shared_ptr<Stick10> stick = make_shared<Stick10>();
+ bool connected = stick->connect();
REQUIRE(connected == true);
@@ -98,5 +98,5 @@ TEST_CASE("Test HOTP codes according to RFC", "[HOTP]") {
}
- stick.disconnect();
+ stick->disconnect();
}