mirror of
git://source.winehq.org/git/wine.git
synced 2024-09-06 03:20:30 +00:00
winscard/tests: Skip tests when SCardListReadersA() returns an empty list.
This commit is contained in:
parent
417dc2b40e
commit
e85cab70ea
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue