diff options
author | Szczepan Zalega <szczepan@nitrokey.com> | 2018-01-29 18:52:28 +0100 |
---|---|---|
committer | Szczepan Zalega <szczepan@nitrokey.com> | 2018-01-29 18:52:28 +0100 |
commit | fb74908ac898d40c75f5a6b25d19f25f63a7fb0b (patch) | |
tree | 6de0f80d8387d13910a82b7e8104b7b42fb6f023 | |
parent | d6c05b7279c521514bde5f43ea4a9550ca150018 (diff) | |
download | libnitrokey-fb74908ac898d40c75f5a6b25d19f25f63a7fb0b.tar.gz libnitrokey-fb74908ac898d40c75f5a6b25d19f25f63a7fb0b.tar.bz2 |
Do initialization of hidden volume before test (once)
Signed-off-by: Szczepan Zalega <szczepan@nitrokey.com>
-rw-r--r-- | unittest/test_issues.cc | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/unittest/test_issues.cc b/unittest/test_issues.cc index fe80384..d4fd72e 100644 --- a/unittest/test_issues.cc +++ b/unittest/test_issues.cc @@ -87,6 +87,16 @@ bool test_31(){ } TEST_CASE("issue 31", "[issue]"){ + { + auto i = NitrokeyManager::instance(); + i->set_loglevel(4); + REQUIRE(i->connect()); + + i->unlock_encrypted_volume(default_user_pin); + i->create_hidden_volume(0, 70, 80, hidden_volume_pass); + i->lock_device(); + } + for(int i=0; i<20; i++){ REQUIRE(test_31()); } |