From: Klas Lindfors Date: Fri, 14 Sep 2012 07:23:20 +0000 (+0200) Subject: test for error state from yk_init() X-Git-Tag: v1.8.0~73 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=94d1bf632883f8094b443e997123174391399f77;p=yubikey-personalization test for error state from yk_init() --- diff --git a/tests/test_threaded_calls.c b/tests/test_threaded_calls.c index 93e5e55..19403d3 100644 --- a/tests/test_threaded_calls.c +++ b/tests/test_threaded_calls.c @@ -38,7 +38,10 @@ void *start_thread(void *arg) { - yk_init(); + if(!yk_init()) { + printf("failed to init usb..\n"); + return; + } YK_STATUS *st = ykds_alloc(); YK_KEY *yk = 0; yk_errno = 0;