test/test_tools.h
changeset 184 716b220697a0
parent 171 02f4d5d9bfd7
child 209 765619b7cbb2
     1.1 --- a/test/test_tools.h	Fri Jun 20 11:09:30 2008 +0100
     1.2 +++ b/test/test_tools.h	Thu Mar 27 16:27:23 2008 +0100
     1.3 @@ -24,6 +24,7 @@
     1.4  ///\brief Some utilities to write test programs.
     1.5  
     1.6  #include <iostream>
     1.7 +#include <stdlib.h>
     1.8  
     1.9  ///If \c rc is fail, writes an error message and exits.
    1.10  
    1.11 @@ -36,8 +37,6 @@
    1.12  ///\code check(0==1,"This is obviously false.");\endcode will
    1.13  ///print something like this (and then exits).
    1.14  ///\verbatim file_name.cc:123: error: This is obviously false. \endverbatim
    1.15 -///
    1.16 -///\todo It should be in \c assert.h
    1.17  #define check(rc, msg) \
    1.18    if(!(rc)) { \
    1.19      std::cerr << __FILE__ ":" << __LINE__ << ": error: " << msg << std::endl; \