diff options
author | Fabio Fiorina <fiorinaf@gnutls.org> | 2002-10-07 19:34:30 +0000 |
---|---|---|
committer | Fabio Fiorina <fiorinaf@gnutls.org> | 2002-10-07 19:34:30 +0000 |
commit | 22980812f7038378127cc9e8b3a3d70c0699e109 (patch) | |
tree | 6ecbf0d8ac659da36e2500fd226c5ded5d663f17 /tests/Test_parser.c | |
parent | 56db6def01a8d8c5a195453cd1efb05641e70a14 (diff) | |
download | libtasn1-22980812f7038378127cc9e8b3a3d70c0699e109.tar.gz libtasn1-22980812f7038378127cc9e8b3a3d70c0699e109.tar.bz2 libtasn1-22980812f7038378127cc9e8b3a3d70c0699e109.zip |
*** empty log message ***
Diffstat (limited to 'tests/Test_parser.c')
-rw-r--r-- | tests/Test_parser.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/tests/Test_parser.c b/tests/Test_parser.c index 8236844..7c3a397 100644 --- a/tests/Test_parser.c +++ b/tests/Test_parser.c @@ -81,7 +81,8 @@ test_type test_array[]={ {12,"const1 INTEGER ::= 10",ASN1_SUCCESS,""}, {12,"const1 INTEGER ::= v1", ASN1_SYNTAX_ERROR,_FILE_":12: parse error near 'v1'"}, - + {16," generic generalstring", + ASN1_IDENTIFIER_NOT_FOUND,_FILE_":: identifier 'generalstring' not found"}, /* end */ @@ -145,7 +146,7 @@ main(int argc,char *argv[]) if(result!=ASN1_SUCCESS){ printf("File '%s' not correct\n",fileCorrectName); - libasn1_perror(result); + libtasn1_perror(result); printf("ErrorDescription = %s\n\n",errorDescription); exit(1); } @@ -172,9 +173,9 @@ main(int argc,char *argv[]) errorCounter++; printf("ERROR N. %d:\n",errorCounter); printf(" Line %d - %s\n",test->lineNumber,test->line); - printf(" Error expected: %s - %s\n",libasn1_strerror(test->errorNumber), + printf(" Error expected: %s - %s\n",libtasn1_strerror(test->errorNumber), test->errorDescription); - printf(" Error detected: %s - %s\n\n",libasn1_strerror(result), + printf(" Error detected: %s - %s\n\n",libtasn1_strerror(result), errorDescription); } |