[poppler] test/perf-test.cc

Krzysztof Kowalczyk kjk at kemper.freedesktop.org
Mon Sep 24 20:14:02 PDT 2007


 test/perf-test.cc |    2 ++
 1 file changed, 2 insertions(+)

New commits:
diff-tree bf9b46b012c64624818a2110af7c4b7e3b419728 (from 2f664b654ca19135f0f8a0fe89872b9e0d526fa2)
Author: Krzysztof Kowalczyk <kkowalczyk at gmail.com>
Date:   Mon Sep 24 20:13:54 2007 -0700

    Respect -loadonly cmd-line arg.

diff --git a/test/perf-test.cc b/test/perf-test.cc
index b9b5e11..068d2a0 100644
--- a/test/perf-test.cc
+++ b/test/perf-test.cc
@@ -881,6 +881,8 @@ static void RenderPdf(const char *fileNa
     int pageCount = engineSplash->pageCount();
 
     LogInfo("page count: %d\n", pageCount);
+    if (gfLoadOnly)
+        goto Error;
 
     for (int curPage = 1; curPage <= pageCount; curPage++) {
         if ((gPageNo != PAGE_NO_NOT_GIVEN) && (gPageNo != curPage))


More information about the poppler mailing list