From 71a1c5ff44adef120dfe1708305a244b69c801f8 Mon Sep 17 00:00:00 2001 From: harshaintc Date: Fri, 13 Jan 2017 13:39:11 +0530 Subject: [PATCH] Reinitialize the device. Reinitialize the device to put the device back to normal state in-case if the channel was closed due to errors. --- u2f-tests/HID/HIDTest.cc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/u2f-tests/HID/HIDTest.cc b/u2f-tests/HID/HIDTest.cc index cf08b6b..4a31ad6 100644 --- a/u2f-tests/HID/HIDTest.cc +++ b/u2f-tests/HID/HIDTest.cc @@ -630,10 +630,14 @@ int main(int argc, char* argv[]) { PASS(test_Lock()); PASS(test_Echo()); + //Re-initialize the device + PASS(test_BasicInit()); PASS(test_LongEcho()); PASS(test_Timeout()); + //Re-initialize the device + PASS(test_BasicInit()); PASS(test_WrongSeq()); PASS(test_NotCont()); PASS(test_NotFirst());