[Pcsclite-cvs-commit] r2320 - trunk/PCSC/src
Ludovic Rousseau
rousseau at alioth.debian.org
Tue Jan 9 16:28:14 CET 2007
Author: rousseau
Date: 2007-01-09 16:28:13 +0100 (Tue, 09 Jan 2007)
New Revision: 2320
Modified:
trunk/PCSC/src/testpcsc.c
Log:
test for SCardIsValidContext()
Modified: trunk/PCSC/src/testpcsc.c
===================================================================
--- trunk/PCSC/src/testpcsc.c 2007-01-09 15:27:56 UTC (rev 2319)
+++ trunk/PCSC/src/testpcsc.c 2007-01-09 15:28:13 UTC (rev 2320)
@@ -74,6 +74,14 @@
rv = SCardEstablishContext(SCARD_SCOPE_SYSTEM, NULL, NULL, &hContext);
test_rv(rv, hContext, PANIC);
+ printf("Testing SCardIsValidContext\t: ");
+ rv = SCardIsValidContext(hContext);
+ test_rv(rv, hContext, PANIC);
+
+ printf("Testing SCardIsValidContext\t: ");
+ rv = SCardIsValidContext(hContext+1);
+ test_rv(rv, hContext, DONT_PANIC);
+
printf("Testing SCardGetStatusChange \n");
printf("Please insert a working reader\t: ");
fflush(stdout);
More information about the Pcsclite-cvs-commit
mailing list