Testing.h
Go to the documentation of this file.
1 #ifndef WIRECELLUTIL_TESTING
2 #define WIRECELLUTIL_TESTING
3 
4 #define BOOST_ENABLE_ASSERT_HANDLER 1
5 #include <boost/assert.hpp>
6 
7 #define Assert BOOST_ASSERT
8 #define AssertMsg BOOST_ASSERT_MSG
9 
10 namespace boost
11 {
12  void assertion_failed(char const * expr, char const * function, char const * file, long line);
13  void assertion_failed_msg(char const * expr, char const * msg, char const * function, char const * file, long line);
14 }
15 
16 namespace WireCell {
17  namespace Testing {
18  void log(const char* argv0);
19  }
20 }
21 
22 #endif
Definition: posix.h:188
void msg(const char *fmt,...)
Definition: message.cpp:107
void assertion_failed_msg(char const *expr, char const *msg, char const *function, char const *file, long line)
Definition: Testing.cxx:9
Definition: Main.h:22
void assertion_failed(char const *expr, char const *function, char const *file, long line)
Definition: Testing.cxx:22