tests: Fix card present check
tests: Fix card present check

Check SC_READER_CARD_PRESENT flag rather than == 1.
Having no card present on the first loop and then inserting a card will
return rc = CARD_PRESENT | CARD_CHANGED (= 3). SEGFAULT ensures when we mistake
the unset opt_reader as having a present card.

fabled/OpenSC,metsma/OpenSC,philipWendland/OpenSC,OpenSC/OpenSC,fabled/OpenSC,AktivCo/OpenSC,LudovicRousseau/OpenSC,mouse07410/OpenSC,AktivCo/OpenSC,frankmorgner/OpenSC,rickyepoderi/OpenSC,Jakuje/OpenSC,metsma/OpenSC,dengert/OpenSC,Jakuje/OpenSC,dengert/OpenSC,hongquan/OpenSC-main,OpenSC/OpenSC,Jakuje/OpenSC,frankmorgner/OpenSC,philipWendland/OpenSC,dengert/OpenSC,Jakuje/OpenSC,OpenSC/OpenSC,LudovicRousseau/OpenSC,fabled/OpenSC,hongquan/OpenSC-main,rickyepoderi/OpenSC,frankmorgner/OpenSC,frankmorgner/OpenSC,mouse07410/OpenSC,hongquan/OpenSC-main,mouse07410/OpenSC,AktivCo/OpenSC,metsma/OpenSC,philipWendland/OpenSC,fabled/OpenSC,LudovicRousseau/OpenSC,rickyepoderi/OpenSC