diff options
author | Szczepan Zalega <szczepan.zalega@gmail.com> | 2016-02-20 15:23:05 +0100 |
---|---|---|
committer | Szczepan Zalega <szczepan.zalega@gmail.com> | 2016-02-20 15:23:05 +0100 |
commit | a0db16048f81313604a06509cc6afeb5cdbf740d (patch) | |
tree | eff23c3e2963928c0e95dd65b7aedfcda0c8748f /unittest | |
parent | 6a8151c3a25b09a12118343342fdd87b3d429a83 (diff) | |
download | libnitrokey-a0db16048f81313604a06509cc6afeb5cdbf740d.tar.gz libnitrokey-a0db16048f81313604a06509cc6afeb5cdbf740d.tar.bz2 |
compiling own version of lib hid_libusb (copied from nitroapp) and linking it statically with debug messages
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(); } |