aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSzczepan Zalega <szczepan@nitrokey.com>2016-10-24 17:52:15 +0200
committerSzczepan Zalega <szczepan@nitrokey.com>2016-11-26 18:56:24 +0100
commitd02c321effbc8b1ae6e8e54f93df53d57ab0d7e1 (patch)
treead477954bc7857b19ab537fd7cde2418bdd6afa2
parent8f70b382067c932232dbf3966d8859266986004d (diff)
downloadlibnitrokey-d02c321effbc8b1ae6e8e54f93df53d57ab0d7e1.tar.gz
libnitrokey-d02c321effbc8b1ae6e8e54f93df53d57ab0d7e1.tar.bz2
Test: check device status. Use automatic disconnection.
Signed-off-by: Szczepan Zalega <szczepan@nitrokey.com>
-rw-r--r--unittest/test2.cc4
1 files changed, 1 insertions, 3 deletions
diff --git a/unittest/test2.cc b/unittest/test2.cc
index 91982c9..9739217 100644
--- a/unittest/test2.cc
+++ b/unittest/test2.cc
@@ -64,6 +64,7 @@ TEST_CASE("test", "[test]") {
execute_password_command<SendSetReadonlyToUncryptedVolume>(stick, "123456");
execute_password_command<SendSetReadwriteToUncryptedVolume>(stick, "123456");
execute_password_command<SendClearNewSdCardFound>(stick, "12345678", 'A');
+ stick20::GetDeviceStatus::CommandTransaction::run(stick);
this_thread::sleep_for(1000ms);
// execute_password_command<LockFirmware>(stick, "123123123"); //CAUTION
// execute_password_command<EnableFirmwareUpdate>(stick, "123123123"); //CAUTION FIRMWARE PIN
@@ -71,8 +72,5 @@ TEST_CASE("test", "[test]") {
execute_password_command<ExportFirmware>(stick, "12345678", 'A');
// execute_password_command<FillSDCardWithRandomChars>(stick, "12345678", 'A');
-
stick10::LockDevice::CommandTransaction::run(stick);
-
- stick.disconnect();
}