Commit c182ffb8 authored by Tomáš Stefan's avatar Tomáš Stefan

remove old tests

parent 386f8146
......@@ -667,11 +667,11 @@ int sigil_sigil_self_test(int verbosity)
print_test_item("file size", verbosity);
{
sgl = test_prepare_sgl_path("test/EduLib__adbe.x509.rsa_sha1.pdf");
sgl = test_prepare_sgl_path("test/subtype_adbe.x509.rsa_sha1.pdf");
if (sgl == NULL)
goto failed;
if (sgl->pdf_data.size != 60457)
if (sgl->pdf_data.size != 58415)
goto failed;
sigil_free(&sgl);
......
......@@ -270,13 +270,13 @@ int sigil_xref_self_test(int verbosity)
{
sgl = test_prepare_sgl_path(
"test/uznavany_bez_razitka_bez_revinfo_27_2_2012_CMS.pdf");
"test/subtype_adbe.x509.rsa_sha1.pdf");
if (sgl == NULL)
goto failed;
sgl->xref_type = XREF_TYPE_UNSET;
if (pdf_move_pos_abs(sgl, 67954) != ERR_NONE)
if (pdf_move_pos_abs(sgl, 58077) != ERR_NONE)
goto failed;
if (determine_xref_type(sgl) != ERR_NONE ||
......@@ -290,31 +290,6 @@ int sigil_xref_self_test(int verbosity)
print_test_result(1, verbosity);
// TEST: fn determine_xref_type - STREAM
print_test_item("fn determine_xref_type STREAM", verbosity);
{
sgl = test_prepare_sgl_path(
"test/SampleSignedPDFDocument.pdf");
if (sgl == NULL)
goto failed;
sgl->xref_type = XREF_TYPE_UNSET;
if (pdf_move_pos_abs(sgl, 116) != ERR_NONE)
goto failed;
if (determine_xref_type(sgl) != ERR_NONE ||
sgl->xref_type != XREF_TYPE_STREAM)
{
goto failed;
}
sigil_free(&sgl);
}
print_test_result(1, verbosity);
// TEST: fn read_startxref
print_test_item("fn read_startxref", verbosity);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment