[PATCH libcacard 26/45] tests: Verify Applet information is present in properties

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Signed-off-by: Jakub Jelen <jjelen@xxxxxxxxxx>
Reviewed-by: Robert Relyea <rrelyea@xxxxxxxxxx>
---
 tests/libcacard.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/tests/libcacard.c b/tests/libcacard.c
index ea9cee6..3abd1a9 100644
--- a/tests/libcacard.c
+++ b/tests/libcacard.c
@@ -163,6 +163,7 @@ static void get_properties(VReader *reader, int object_type)
     };
     int verified_pki_properties = 0;
     int num_objects = 0, num_objects_expected = -1;
+    int have_applet_information = 0;
 
     status = vreader_xfr_bytes(reader,
                                get_properties, sizeof(get_properties),
@@ -189,6 +190,7 @@ static void get_properties(VReader *reader, int object_type)
         case 0x01: /* Applet Information */
             g_assert_cmpint(vlen, ==, 5);
             g_assert_cmphex(*p, ==, 0x10); /* Applet family */
+            have_applet_information = 1;
             break;
 
         case 0x40: /* Number of objects */
@@ -266,6 +268,8 @@ static void get_properties(VReader *reader, int object_type)
         g_assert_cmpint(verified_pki_properties, ==, 1);
     }
 
+    g_assert_cmpint(have_applet_information, ==, 1);
+
     dwRecvLength = APDUBufSize;
     status = vreader_xfr_bytes(reader,
                                get_properties_tag, sizeof(get_properties_tag),
-- 
2.17.1

_______________________________________________
Spice-devel mailing list
Spice-devel@xxxxxxxxxxxxxxxxxxxxx
https://lists.freedesktop.org/mailman/listinfo/spice-devel




[Index of Archives]     [Linux Virtualization]     [Linux Virtualization]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]     [Monitors]