Changeset 177

Show
Ignore:
Timestamp:
05/12/06 12:34:14 (2 years ago)
Author:
jordi
Message:

The tests are only compiled iif the --enable-debug is also used in configure, beside having CppUnit? installed.

Added stdlib.h header in DumbMainView? or atoi would be undefined.

Location:
trunk
Files:
3 modified

Legend:

Unmodified
Added
Removed
  • trunk/configure.ac

    r115 r177  
    4343dnl CPPUnit library 
    4444AM_PATH_CPPUNIT([1.10.2], CPPUNIT="yes") 
    45 AM_CONDITIONAL(build_tests, test "x$CPPUNIT" = "xyes") 
     45AM_CONDITIONAL(build_tests, test "x$CPPUNIT" = "xyes" -a "x$enable_debug" = "xyes") 
    4646 
    4747dnl Check for header files. 
  • trunk/src/MainPter.cxx

    r159 r177  
    751751/// @brief Waits until a file is loaded. 
    752752/// 
     753/// This is *only* useful for testing, don't use it. 
     754/// 
    753755void 
    754756MainPter::waitForFileLoaded () 
  • trunk/tests/DumbMainView.cxx

    r173 r177  
    1717 
    1818#include <epdfview.h> 
     19#include <stdlib.h> 
    1920#include "DumbFindView.h" 
    2021#include "DumbPageView.h"