diff --git a/testpdfio.c b/testpdfio.c index 909f12b..6361e7d 100644 --- a/testpdfio.c +++ b/testpdfio.c @@ -208,8 +208,8 @@ do_pdfa_tests(void) if (create_pdfa_test_file("testpdfio-pdfa-4.pdf", "PDF/A-4")) status = 1; // Test that encryption is not allowed for PDF/A files - testBegin("Block encryption for PDF/A file"); - if ((fail_pdf = pdfioFileCreate("testpdfio-pdfa-fail.pdf", "PDF/A-1b", &media_box, NULL, (pdfio_error_cb_t)error_cb, &error)) == NULL) + testBegin("pdfioFileCreate(testpdfio-pdfa-rc4.pdf)"); + if ((fail_pdf = pdfioFileCreate("testpdfio-pdfa-rc4.pdf", "PDF/A-1b", &media_box, NULL, (pdfio_error_cb_t)error_cb, &error)) == NULL) { testEndMessage(false, "pdfioFileCreate failed for encryption test."); return (1); @@ -217,7 +217,7 @@ do_pdfa_tests(void) if (pdfioFileSetPermissions(fail_pdf, PDFIO_PERMISSION_ALL, PDFIO_ENCRYPTION_RC4_128, "owner", "user")) { - testEndMessage(false, "pdfioFileSetPermissions succeeded but should have failed."); + testEndMessage(false, "encryption allowed on PDF/A file"); status = 1; } else