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

This commit is contained in:
Hans Leidekker 2023-09-13 18:29:53 +02:00 committed by Alexandre Julliard
parent 417dc2b40e
commit e85cab70ea

View file

@ -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)
{