diff options
author | Simon Josefsson <simon@josefsson.org> | 2006-06-26 14:24:34 +0000 |
---|---|---|
committer | Simon Josefsson <simon@josefsson.org> | 2006-06-26 14:24:34 +0000 |
commit | 410374d66dcec3efd3df1d51947dc4dc77c27e87 (patch) | |
tree | 590ef28bc86540f0210f8880b7455f29f74080be /tests/Test_tree.c | |
parent | a92ff1b0e39f8eee991428093137b339555aec6f (diff) | |
download | libtasn1-410374d66dcec3efd3df1d51947dc4dc77c27e87.tar.gz libtasn1-410374d66dcec3efd3df1d51947dc4dc77c27e87.tar.bz2 libtasn1-410374d66dcec3efd3df1d51947dc4dc77c27e87.zip |
Trigger a bug that made Shishi self tests fail on 64-bit platforms.
Diffstat (limited to 'tests/Test_tree.c')
-rw-r--r-- | tests/Test_tree.c | 17 |
1 files changed, 16 insertions, 1 deletions
diff --git a/tests/Test_tree.c b/tests/Test_tree.c index 4df628d..bd748f0 100644 --- a/tests/Test_tree.c +++ b/tests/Test_tree.c @@ -392,8 +392,23 @@ test_type test_array[]={ {ACT_READ_LENGTH,"b",NULL,5,ASN1_MEM_ERROR}, {ACT_VISIT,"","",ASN1_PRINT_ALL,ASN1_SUCCESS}, {ACT_DELETE,"","",0,ASN1_SUCCESS}, - + /* Bug regression test: Empty write on 64-bit platforms */ + {ACT_CREATE,"TEST_TREE.Checksum",0,0,ASN1_SUCCESS}, + {ACT_WRITE,"checksum","foo",0,ASN1_SUCCESS}, + {ACT_WRITE,"checksum","",0,ASN1_SUCCESS}, + {ACT_ENCODING_LENGTH,"",0,4,ASN1_MEM_ERROR}, + {ACT_ENCODING,"",0,3,ASN1_MEM_ERROR}, + {ACT_ENCODING,"",0,4,ASN1_SUCCESS}, + {ACT_PRINT_DER,0,0,0,ASN1_SUCCESS}, + {ACT_DELETE,"","",0,ASN1_SUCCESS}, + {ACT_CREATE,"TEST_TREE.Checksum",0,0,ASN1_SUCCESS}, + {ACT_DECODING,0,0,0,ASN1_SUCCESS}, + {ACT_DECODING_ELEMENT,"checksum",0,0,ASN1_SUCCESS}, + {ACT_READ,"checksum","",0,ASN1_SUCCESS}, + {ACT_READ_LENGTH,"checksum",NULL,0,ASN1_SUCCESS}, /* MEM_FAILURE? */ + {ACT_VISIT,"","",ASN1_PRINT_ALL,ASN1_SUCCESS}, + {ACT_DELETE,"","",0,ASN1_SUCCESS}, /* end */ {ACT_NULL} |