diff options
Diffstat (limited to 'unittest')
-rw-r--r-- | unittest/Makefile | 2 | ||||
-rw-r--r-- | unittest/test.cc | 1 |
2 files changed, 2 insertions, 1 deletions
diff --git a/unittest/Makefile b/unittest/Makefile index 145c738..00cbc43 100644 --- a/unittest/Makefile +++ b/unittest/Makefile @@ -4,7 +4,7 @@ LD = $(CXX) INCLUDE = -I../include LIB = -L../build -LDLIBS = -lnitrokey +LDLIBS = -lnitrokey -lusb-1.0 BUILD = build CXXFLAGS = -std=c++14 -fPIC diff --git a/unittest/test.cc b/unittest/test.cc index f24fc54..ae13dda 100644 --- a/unittest/test.cc +++ b/unittest/test.cc @@ -32,4 +32,5 @@ int main() { auto slot = ReadSlot::CommandTransaction::run(stick, slot_req); } } + stick.disconnect(); } |