Commit e85cab70 authored by Hans Leidekker's avatar Hans Leidekker Committed by Alexandre Julliard

winscard/tests: Skip tests when SCardListReadersA() returns an empty list.

parent 417dc2b4
......@@ -80,6 +80,11 @@ static void test_SCardEstablishContext(void)
ok( ret == SCARD_S_SUCCESS, "got %lx\n", ret );
ok( readers != NULL, "got NULL readers" );
ok( len != SCARD_AUTOALLOCATE, "got %lu", len );
if (!*readers)
{
skip( "connect a smart card device to run more tests\n" );
return;
}
ptr = readers;
while (*ptr)
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment