Move test PDF file to new testfiles subdirectory.

Ignore generated PDF files from unit test program.
This commit is contained in:
Michael R Sweet 2021-05-28 09:31:42 -04:00
parent 128d5f0d42
commit 9cf024c1ce
No known key found for this signature in database
GPG Key ID: 999559A027815955
3 changed files with 3 additions and 2 deletions

1
.gitignore vendored
View File

@ -3,4 +3,5 @@
*.o *.o
*.so *.so
/testpdfio /testpdfio
/testpdfio-*.pdf

View File

@ -167,8 +167,8 @@ do_unit_tests(void)
// First open the test PDF file... // First open the test PDF file...
fputs("pdfioFileOpen(\"testpdfio.pdf\"): ", stdout); fputs("pdfioFileOpen(\"testfiles/testpdfio.pdf\"): ", stdout);
if ((pdf = pdfioFileOpen("testpdfio.pdf", (pdfio_error_cb_t)error_cb, &error)) != NULL) if ((pdf = pdfioFileOpen("testfiles/testpdfio.pdf", (pdfio_error_cb_t)error_cb, &error)) != NULL)
puts("PASS"); puts("PASS");
else else
return (1); return (1);