From a0db16048f81313604a06509cc6afeb5cdbf740d Mon Sep 17 00:00:00 2001 From: Szczepan Zalega Date: Sat, 20 Feb 2016 15:23:05 +0100 Subject: compiling own version of lib hid_libusb (copied from nitroapp) and linking it statically with debug messages --- unittest/Makefile | 2 +- unittest/test.cc | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) (limited to 'unittest') 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(); } -- cgit v1.2.1