From fb74908ac898d40c75f5a6b25d19f25f63a7fb0b Mon Sep 17 00:00:00 2001 From: Szczepan Zalega Date: Mon, 29 Jan 2018 18:52:28 +0100 Subject: Do initialization of hidden volume before test (once) Signed-off-by: Szczepan Zalega --- unittest/test_issues.cc | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'unittest') 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()); } -- cgit v1.2.3