Corrected the test.
authorNikos Mavrogiannopoulos <nmav@gnutls.org>
Fri, 14 Sep 2012 16:08:19 +0000 (18:08 +0200)
committerNikos Mavrogiannopoulos <nmav@gnutls.org>
Fri, 14 Sep 2012 16:08:19 +0000 (18:08 +0200)
tests/Test_parser.c

index 76daf09..fd56210 100644 (file)
@@ -52,13 +52,12 @@ test_type test_array[] = {
 
   /* Test ASN1_MAX_NAME_SIZE (128) */
   {12,
-   "a1234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567 ::= INTEGER",
+   "a123456789012345678901234567890123456789012345678901234567890123 ::= INTEGER",
    ASN1_SUCCESS, ""},
   {12,
-   "a12345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678 ::= INTEGER",
+   "a1234567890123456789012345678901234567890123456789012345678901234 ::= INTEGER",
    ASN1_NAME_TOO_LONG,
-   _FILE_ ":12: name too long (more than 128 characters)"},
-
+   _FILE_ ":12: name too long (more than 64 characters)"},
   /* Test 'check identifier' function */
   {12, "ident1 ::= ident2   ident2 ::= INTEGER",
    ASN1_SUCCESS, ""},
@@ -101,7 +100,6 @@ test_type test_array[] = {
   {20, "   oid1    OBJECT IDENTIFIER DEFAULT Oid-type1",
    ASN1_SUCCESS, ""},
 
-
   /* end */
   {0}
 };