Changeset 78 for trunk/tests/main.cxx

Show
Ignore:
Timestamp:
04/17/06 07:28:50 (3 years ago)
Author:
jordi
Message:

Since version 0.5.0 and up doesn't support the old Xpdf header files and because the CairoOutputDev?.h file is not installed on version 0.5.1, I now use Poppler's glib wrapper for PDF loading.

The glib wrapper needs an URI instead of a filename (why?), so the path to the file must be specified as an absolute path to be able to convert it to an URI (file:///dir1/dir2/file.pdf). This also means that the tests files had to be changed to use absolute paths. I added a function (that I'll change to a common utils source) that transform the filename to an absolute path.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/tests/main.cxx

    r3 r78  
    1717 
    1818#include <stdlib.h> 
     19#include <glib-object.h> 
    1920#include <cppunit/CompilerOutputter.h> 
    2021#include <cppunit/extensions/TestFactoryRegistry.h> 
     
    2627main (int argc, char **argv) 
    2728{ 
     29    // We must initialize glib't types. 
     30    g_type_init (); 
     31     
    2832    // Get the top level suite from the registry. 
    2933    Test *suite = TestFactoryRegistry::getRegistry ().makeTest ();