From 9cf024c1ce30ec7c62aeeda1b93d61320330c15d Mon Sep 17 00:00:00 2001 From: Michael R Sweet Date: Fri, 28 May 2021 09:31:42 -0400 Subject: [PATCH] Move test PDF file to new testfiles subdirectory. Ignore generated PDF files from unit test program. --- .gitignore | 1 + testpdfio.pdf => testfiles/testpdfio.pdf | Bin testpdfio.c | 4 ++-- 3 files changed, 3 insertions(+), 2 deletions(-) rename testpdfio.pdf => testfiles/testpdfio.pdf (100%) diff --git a/.gitignore b/.gitignore index 5275e95..da4ccf0 100644 --- a/.gitignore +++ b/.gitignore @@ -3,4 +3,5 @@ *.o *.so /testpdfio +/testpdfio-*.pdf diff --git a/testpdfio.pdf b/testfiles/testpdfio.pdf similarity index 100% rename from testpdfio.pdf rename to testfiles/testpdfio.pdf diff --git a/testpdfio.c b/testpdfio.c index d9d7454..972d6fa 100644 --- a/testpdfio.c +++ b/testpdfio.c @@ -167,8 +167,8 @@ do_unit_tests(void) // First open the test PDF file... - fputs("pdfioFileOpen(\"testpdfio.pdf\"): ", stdout); - if ((pdf = pdfioFileOpen("testpdfio.pdf", (pdfio_error_cb_t)error_cb, &error)) != NULL) + fputs("pdfioFileOpen(\"testfiles/testpdfio.pdf\"): ", stdout); + if ((pdf = pdfioFileOpen("testfiles/testpdfio.pdf", (pdfio_error_cb_t)error_cb, &error)) != NULL) puts("PASS"); else return (1);