added a handler for failed BOOST_ASSERT-ions; add global try-catch in main to catch...
authorChristian Herdtweck <christian.herdtweck@intra2net.com>
Tue, 9 Dec 2014 14:59:36 +0000 (15:59 +0100)
committerChristian Herdtweck <christian.herdtweck@intra2net.com>
Tue, 9 Dec 2014 14:59:36 +0000 (15:59 +0100)
59 files changed:
src/CMakeLists.txt
src/boost_assert_handler.cpp [new file with mode: 0644]
src/boost_assert_handler.h [new file with mode: 0644]
src/config/configuration.cpp
src/config/configurationcommandline.cpp
src/config/configurationfile.cpp
src/config/configurationoptions.cpp
src/config/configurationreader.cpp
src/config/host.cpp
src/config/option/hostconfigurationoption.cpp
src/config/option/hostnameoption.cpp
src/config/option/hostpingintervaloption.cpp
src/config/option/hostpingprotocoloption.cpp
src/config/option/hostportoption.cpp
src/config/option/hostsourcenetworkinterfaceoption.cpp
src/dns/dnsresolver.cpp
src/dns/dnsresolverfactory.cpp
src/dns/hostaddress.cpp
src/dns/timetolive.cpp
src/host/hoststatus.cpp
src/host/loglevel.cpp
src/host/logoutput.cpp
src/host/messagepayload.cpp
src/host/networkinterface.hpp
src/host/networkinterfacelist.cpp
src/host/pingerfactory.cpp
src/host/pinginterval.cpp
src/host/pingprotocol.cpp
src/host/pingrotate.cpp
src/host/pingscheduler.cpp
src/icmp/icmppacketfactory.cpp
src/icmp/icmppinger.cpp
src/icmp/icmpv4header.cpp
src/icmp/icmpv4packet.cpp
src/icmp/icmpv6header.cpp
src/icmp/icmpv6packet.cpp
src/ip/ipv6header.cpp
src/link/linkstatus.cpp
src/link/statusnotifiercommand.cpp
src/main.cpp
src/tcp/tcpheader.cpp
src/tcp/tcpipv4segment.cpp
src/tcp/tcpipv6segment.cpp
src/tcp/tcppinger.cpp
src/tcp/tcpsegmentfactory.cpp
test/CMakeLists.test_configurationcommandline.txt
test/CMakeLists.test_configurationfile.txt
test/CMakeLists.test_configurationoptions.txt
test/CMakeLists.test_hoststatus.txt
test/CMakeLists.test_icmpv4header.txt
test/CMakeLists.test_icmpv6header.txt
test/CMakeLists.test_ipv4header.txt
test/CMakeLists.test_ipv6header.txt
test/CMakeLists.test_linkstatus.txt
test/CMakeLists.test_loglevel.txt
test/CMakeLists.test_logoutput.txt
test/CMakeLists.test_messagepayload.txt
test/CMakeLists.test_pingprotocol.txt
test/CMakeLists.test_tcpheader.txt

index ef00cfc..d9f1253 100644 (file)
@@ -98,6 +98,7 @@ set(SOURCES
     tcp/tcpipv6segment.cpp
     tcp/tcpsegment.cpp
     tcp/tcpsegmentfactory.cpp
+    boost_assert_handler.cpp
     main.cpp
 )
 
diff --git a/src/boost_assert_handler.cpp b/src/boost_assert_handler.cpp
new file mode 100644 (file)
index 0000000..ce787e5
--- /dev/null
@@ -0,0 +1,26 @@
+// Boost assertion handler
+//
+// Defines boost::assertion_failed which is declared in <boost/assert.hpp> but
+// not defined to be overwritten by user
+//
+// created 2014 by Christian Herdtweck, Intra2net AG
+//
+// Distributed under the Boost Software License, Version 1.0.
+//    (See accompanying file LICENSE_1_0.txt or copy at
+//          http://www.boost.org/LICENSE_1_0.txt)
+
+#include <stdexcept>
+#include <sstream>
+#include "boost_assert_handler.h"
+
+namespace boost
+{
+    void assertion_failed(char const * expr, char const * function,
+                          char const * file, long line)
+    {
+        std::stringstream msg;
+        msg << "BOOST_ASSERT( " << expr << " ) failed for function "
+            << function << " (line " << line << ")!";
+        throw std::runtime_error( msg.str() );
+    }
+}
diff --git a/src/boost_assert_handler.h b/src/boost_assert_handler.h
new file mode 100644 (file)
index 0000000..980a5b3
--- /dev/null
@@ -0,0 +1,15 @@
+// Boost assertion handler
+//
+// created 2014 by Christian Herdtweck, Intra2net AG
+//
+// Distributed under the Boost Software License, Version 1.0.
+//    (See accompanying file LICENSE_1_0.txt or copy at
+//          http://www.boost.org/LICENSE_1_0.txt)
+
+#ifndef BOOST_ASSERT_HANDLER_H
+#define BOOST_ASSERT_HANDLER_H
+
+#define BOOST_ENABLE_ASSERT_HANDLER
+#include <boost/assert.hpp>
+
+#endif
index 21fa226..2bc85b0 100644 (file)
@@ -21,13 +21,14 @@ on this file might be covered by the GNU General Public License.
 
 #include <set>
 #include <ctime>   // for seeding random number generator
-#include <boost/assert.hpp>
 #include <boost/math/special_functions/round.hpp>
 #include <boost/numeric/conversion/cast.hpp>
 #include <boost/foreach.hpp>
 #include <boost/random/uniform_int.hpp>
 #include <boost/random/variate_generator.hpp>
 
+#include "boost_assert_handler.h"
+
 using namespace std;
 using I2n::Logger::LogLevel;
 using I2n::Logger::GlobalLogger;
index c7add1d..2acd73a 100644 (file)
 
 #include "config/configurationcommandline.h"
 
-#include <boost/assert.hpp>
-
 #include <logfunc.hpp>
 
+#include "boost_assert_handler.h"
 #include "config/configurationoptions.h"
 #include "config/option/hostnameoption.h"
 
index b51c0b2..91e2303 100644 (file)
 #include <fstream>
 #include <iostream>
 
-#include <boost/assert.hpp>
-
 #include <logfunc.hpp>
 
+#include "boost_assert_handler.h"
 #include "config/configurationoptions.h"
 
 using namespace std;
index 2fd3741..45981f1 100644 (file)
 
 #include <iostream>
 
-#include <boost/assert.hpp>
 #include <boost/foreach.hpp>
 
 #include <logfunc.hpp>
 
+#include "boost_assert_handler.h"
 #include "config/option/configfileoption.h"
 #include "config/option/daemonoption.h"
 #include "config/option/hostsdownlimitoption.h"
index ef8a62d..43ddef9 100644 (file)
@@ -19,8 +19,7 @@ on this file might be covered by the GNU General Public License.
 */
 #include "config/configurationreader.h"
 
-#include <boost/assert.hpp>
-
+#include "boost_assert_handler.h"
 #include "config/configurationcommandline.h"
 #include "config/configurationfile.h"
 
index a71e0cf..4768752 100644 (file)
@@ -19,9 +19,9 @@ on this file might be covered by the GNU General Public License.
 */
 #include "config/host.h"
 
-#include <limits>
+#include "boost_assert_handler.h"
 
-#include <boost/assert.hpp>
+#include <limits>
 
 using namespace std;
 
index 9116eac..c1116f2 100644 (file)
 #include <limits>
 #include <string>
 
-#include <boost/assert.hpp>
 #include <boost/foreach.hpp>
 
 #include <logfunc.hpp>
 
+#include "boost_assert_handler.h"
 #include "config/option/hostpingintervaloption.h"
 #include "config/option/hostpingprotocoloption.h"
 #include "config/option/hostportoption.h"
index d62d968..6590f0a 100644 (file)
 #include <string>
 #include <vector>
 
-#include <boost/assert.hpp>
 #include <boost/foreach.hpp>
 
 #include <logfunc.hpp>
 
+#include "boost_assert_handler.h"
+
 using namespace std;
 using boost::program_options::value;
 using boost::program_options::variables_map;
index b7aac17..c271a09 100644 (file)
@@ -22,7 +22,6 @@
 
 #include <string>
 
-#include <boost/assert.hpp>
 #include <boost/foreach.hpp>
 #include <boost/lexical_cast.hpp>
 
@@ -30,6 +29,8 @@
 
 #include <logfunc.hpp>
 
+#include "boost_assert_handler.h"
+
 using namespace std;
 using boost::program_options::value;
 using boost::program_options::variables_map;
index bd3011a..d5e5baf 100644 (file)
 #include <sstream>
 #include <string>
 
-#include <boost/assert.hpp>
 #include <boost/foreach.hpp>
 
 #include <logfunc.hpp>
 
+#include "boost_assert_handler.h"
+
 using namespace std;
 using boost::program_options::value;
 using boost::program_options::variables_map;
index 43557c4..aba8c35 100644 (file)
 #include <string>
 #include <vector>
 
-#include <boost/assert.hpp>
 #include <boost/foreach.hpp>
 
 #include <logfunc.hpp>
 
+#include "boost_assert_handler.h"
+
 using namespace std;
 using boost::program_options::value;
 using boost::program_options::variables_map;
index f18e19d..f1d07b3 100644 (file)
 
 #include <string>
 
-#include <boost/assert.hpp>
 #include <boost/foreach.hpp>
 
 #include <logfunc.hpp>
 
+#include "boost_assert_handler.h"
+
 using namespace std;
 using boost::program_options::value;
 using boost::program_options::variables_map;
index f189930..83615d6 100644 (file)
@@ -22,7 +22,6 @@ on this file might be covered by the GNU General Public License.
 #include <algorithm>
 #include <iostream>
 
-#include <boost/assert.hpp>
 #include <boost/asio.hpp>
 #include <boost/foreach.hpp>
 #include <boost/net/resolve.hpp>
@@ -30,6 +29,7 @@ on this file might be covered by the GNU General Public License.
 
 #include <logfunc.hpp>
 
+#include "boost_assert_handler.h"
 #include "dns/hostaddress.h"
 
 using namespace std;
index 900cbf3..89a29e6 100644 (file)
@@ -22,6 +22,8 @@
 
 #include <boost/net/dns.hpp>
 
+#include "boost_assert_handler.h"
+
 using namespace std;
 using boost::net::dns::type_t;
 
index 7e94270..ebc01ad 100644 (file)
@@ -19,9 +19,10 @@ on this file might be covered by the GNU General Public License.
 */
 #include "dns/hostaddress.h"
 
-#include <boost/assert.hpp>
 #include <boost/version.hpp>
 
+#include "boost_assert_handler.h"
+
 using namespace std;
 using boost::asio::ip::address;
 
index a32c9e2..1497042 100644 (file)
@@ -19,7 +19,7 @@ on this file might be covered by the GNU General Public License.
 */
 #include "dns/timetolive.h"
 
-#include <boost/assert.hpp>
+#include "boost_assert_handler.h"
 
 using boost::date_time::time_resolution_traits_adapted64_impl;
 using boost::posix_time::microsec_clock;
index 31b88e3..f6a0257 100644 (file)
@@ -21,7 +21,7 @@ on this file might be covered by the GNU General Public License.
 
 #include <iostream>
 
-#include <boost/assert.hpp>
+#include "boost_assert_handler.h"
 
 using namespace std;
 
index 52982d2..6a90cfb 100644 (file)
@@ -23,7 +23,7 @@ on this file might be covered by the GNU General Public License.
 #include <algorithm>
 #include <map>
 
-#include <boost/assert.hpp>
+#include "boost_assert_handler.h"
 
 using namespace std;
 using I2n::Logger::LogLevel;
index cbc4970..8104d0e 100644 (file)
@@ -23,7 +23,7 @@ on this file might be covered by the GNU General Public License.
 #include <algorithm>
 #include <map>
 
-#include <boost/assert.hpp>
+#include "boost_assert_handler.h"
 
 using namespace std;
 
index ad9b442..4021004 100644 (file)
@@ -1,5 +1,6 @@
 // Copyright (c) 2003-2010 Christopher M. Kohlhoff
 // Modifications (c) 2011 by Guilherme Maciel Ferreira / Intra2net AG
+//           and (c) 2014 by Christian Herdtweck / Intra2net AG
 //
 // Distributed under the Boost Software License, Version 1.0.
 //    (See accompanying file LICENSE_1_0.txt or copy at
 #include <algorithm>
 #include <limits>
 
-#include <boost/assert.hpp>
-
 #include <logfunc.hpp>
 
+#include "boost_assert_handler.h"
+
 using namespace std;
 using I2n::Logger::GlobalLogger;
 
index 09c16d2..8f40122 100644 (file)
@@ -32,7 +32,6 @@
 
 #include <string>
 
-#include <boost/assert.hpp>
 #include <boost/asio/basic_socket.hpp>
 #include <boost/asio/basic_raw_socket.hpp>
 #include <boost/asio/ip/address.hpp>
@@ -41,6 +40,7 @@
 
 #include <logfunc.hpp>
 
+#include "boost_assert_handler.h"
 #include "host/networkinterfacelist.h"
 
 typedef const struct sockaddr* const_sockaddr_ptr_t;
index e7b2e47..8e30fcd 100644 (file)
 
 #include <stddef.h>
 
-#include <boost/assert.hpp>
-
 #include <logfunc.hpp>
 
+#include "boost_assert_handler.h"
+
 using namespace std;
 using I2n::Logger::GlobalLogger;
 
index 9203b42..24f2bcd 100644 (file)
@@ -27,6 +27,7 @@
 #include <boost/asio/ip/tcp_raw_protocol.hpp>
 #include <boost/system/system_error.hpp>
 
+#include "boost_assert_handler.h"
 #include "icmp/icmppinger.h"
 #include "tcp/tcppinger.h"
 
index 2f0d5e6..cadc3f4 100644 (file)
@@ -19,7 +19,7 @@ on this file might be covered by the GNU General Public License.
 */
 #include "host/pinginterval.h"
 
-#include <boost/assert.hpp>
+#include "boost_assert_handler.h"
 
 //-----------------------------------------------------------------------------
 // PingInterval
index ea7e66b..6e57c87 100644 (file)
@@ -23,7 +23,7 @@ on this file might be covered by the GNU General Public License.
 #include <algorithm>
 #include <map>
 
-#include <boost/assert.hpp>
+#include "boost_assert_handler.h"
 
 using namespace std;
 
index b000658..9ad8987 100644 (file)
@@ -20,9 +20,9 @@
 
 #include "host/pingrotate.h"
 
-#include <boost/assert.hpp>
 #include <boost/bind.hpp>
 
+#include "boost_assert_handler.h"
 #include "dns/dnsresolverfactory.h"
 #include "host/pingerfactory.h"
 
index d4624e9..d106452 100644 (file)
@@ -26,6 +26,7 @@ on this file might be covered by the GNU General Public License.
 
 #include <logfunc.hpp>
 
+#include "boost_assert_handler.h"
 #include "dns/dnsresolver.h"
 #include "host/pingerfactory.h"
 #include "icmp/icmppinger.h"
index 3488f02..277a980 100644 (file)
 
 #include "icmp/icmppacketfactory.h"
 
-#include <boost/assert.hpp>
 
 #include <logfunc.hpp>
 
+#include "boost_assert_handler.h"
 #include "icmp/icmpchecksum.h"
 #include "icmp/icmpdata.h"
 #include "icmp/icmptype.h"
index 3329913..6899c6b 100644 (file)
@@ -12,7 +12,6 @@
 #include <istream>
 #include <ostream>
 
-#include <boost/assert.hpp>
 #include <boost/bind.hpp>
 #include <boost/date_time/posix_time/posix_time.hpp>
 #include <boost/date_time/posix_time/posix_time_types.hpp>
@@ -21,6 +20,7 @@
 
 #include <logfunc.hpp>
 
+#include "boost_assert_handler.h"
 #include "icmp/icmppacketfactory.h"
 
 using namespace std;
index fcfcd51..27f9a71 100644 (file)
@@ -6,6 +6,7 @@
 //          http://www.boost.org/LICENSE_1_0.txt)
 #include "icmp/icmpv4header.h"
 
+#include "boost_assert_handler.h"
 #include "icmp/icmpdestinationunreachablemessage.h"
 #include "icmp/icmpechoreplymessage.h"
 #include "icmp/icmpechorequestmessage.h"
index 9b52e38..05f1b50 100644 (file)
@@ -8,10 +8,10 @@
 
 #include <iostream>
 
-#include <boost/assert.hpp>
-
 #include <logfunc.hpp>
 
+#include "boost_assert_handler.h"
+
 using namespace std;
 using boost::asio::ip::address;
 using boost::date_time::time_resolution_traits_adapted64_impl;
index 0438093..e3d2950 100644 (file)
@@ -6,6 +6,7 @@
 //          http://www.boost.org/LICENSE_1_0.txt)
 #include "icmp/icmpv6header.h"
 
+#include "boost_assert_handler.h"
 #include "icmp/icmpdestinationunreachablemessage.h"
 #include "icmp/icmpechoreplymessage.h"
 #include "icmp/icmpechorequestmessage.h"
index 7f78170..5d22e90 100644 (file)
@@ -8,10 +8,10 @@
 
 #include <iostream>
 
-#include <boost/assert.hpp>
-
 #include <logfunc.hpp>
 
+#include "boost_assert_handler.h"
+
 using namespace std;
 using boost::asio::ip::address;
 using boost::date_time::time_resolution_traits_adapted64_impl;
index f5ddc82..c154a78 100644 (file)
@@ -6,10 +6,11 @@
 //          http://www.boost.org/LICENSE_1_0.txt)
 #include "ip/ipv6header.h"
 
-#include <boost/assert.hpp>
 #include <boost/foreach.hpp>
 #include <boost/scoped_array.hpp>
 
+#include "boost_assert_handler.h"
+
 using namespace std;
 using boost::asio::ip::address_v6;
 using boost::scoped_array;
index 71ef3bc..e7b8004 100644 (file)
@@ -21,10 +21,10 @@ on this file might be covered by the GNU General Public License.
 
 #include <iostream>
 
-#include <boost/assert.hpp>
-
 #include <logfunc.hpp>
 
+#include "boost_assert_handler.h"
+
 using namespace std;
 using boost::lock_guard;
 using boost::mutex;
index 3372e8c..20d4051 100644 (file)
@@ -23,12 +23,13 @@ on this file might be covered by the GNU General Public License.
 
 #include <iostream>
 
-#include <boost/assert.hpp>
 #include <boost/foreach.hpp>
 
 #include <logfunc.hpp>
 #include <stringfunc.hxx>
 
+#include "boost_assert_handler.h"
+
 using namespace std;
 using I2n::Logger::GlobalLogger;
 
index 836520c..187fb07 100644 (file)
@@ -32,6 +32,7 @@ on this file might be covered by the GNU General Public License.
 #include <daemonfunc.hpp>
 #include <logfunc.hpp>
 
+#include "boost_assert_handler.h"
 #include "config/configurationreader.h"
 #include "config/host.h"
 #include "link/linkstatus.h"
@@ -40,6 +41,7 @@ on this file might be covered by the GNU General Public License.
 #include "host/pingprotocol.h"
 #include "host/pingscheduler.h"
 
+
 using namespace std;
 using boost::asio::io_service;
 using boost::shared_ptr;
index 46361fb..ac820af 100644 (file)
@@ -25,8 +25,7 @@ on this file might be covered by the GNU General Public License.
 
 #include <algorithm>
 
-#include <boost/assert.hpp>
-
+#include "boost_assert_handler.h"
 #include "ip/pseudoipv4header.h"
 #include "ip/pseudoipv6header.h"
 
index a05d5fe..f27609b 100644 (file)
 
 #include "tcp/tcpipv4segment.h"
 
-#include <boost/assert.hpp>
-
 #include <logfunc.hpp>
 
+#include "boost_assert_handler.h"
+
 using namespace std;
 using boost::asio::ip::address;
 using boost::date_time::time_resolution_traits_adapted64_impl;
index ac706b4..0b412af 100644 (file)
 
 #include "tcp/tcpipv6segment.h"
 
-#include <boost/assert.hpp>
-
 #include <logfunc.hpp>
 
+#include "boost_assert_handler.h"
+
 using namespace std;
 using boost::asio::ip::address;
 using boost::date_time::time_resolution_traits_adapted64_impl;
index 9a1b466..ade4d30 100644 (file)
@@ -28,7 +28,6 @@ on this file might be covered by the GNU General Public License.
 #include <ostream>
 #include <limits>
 
-#include <boost/assert.hpp>
 #include <boost/bind.hpp>
 #include <boost/date_time/posix_time/posix_time.hpp>
 #include <boost/date_time/posix_time/posix_time_types.hpp>
@@ -37,6 +36,7 @@ on this file might be covered by the GNU General Public License.
 
 #include <logfunc.hpp>
 
+#include "boost_assert_handler.h"
 #include "tcp/tcpsegmentfactory.h"
 
 using namespace std;
index da90b30..5d6bcde 100644 (file)
 
 #include "tcp/tcpsegmentfactory.h"
 
-#include <boost/assert.hpp>
-
 #include <logfunc.hpp>
 
+#include "boost_assert_handler.h"
 #include "tcp/tcpheader.h"
 #include "tcp/tcpipv4segment.h"
 #include "tcp/tcpipv6segment.h"
index 0567483..e8ffe65 100644 (file)
@@ -1,6 +1,7 @@
 # compiler: creates the binaries
 add_executable(test_configurationcommandline
     test_configurationcommandline.cpp
+    ${CMAKE_SOURCE_DIR}/src/boost_assert_handler.cpp
     ${CMAKE_SOURCE_DIR}/src/config/configurationcommandline.cpp
     ${CMAKE_SOURCE_DIR}/src/config/configurationinterface.cpp
     ${CMAKE_SOURCE_DIR}/src/config/configurationoptions.cpp
index ee71cb1..3c95c94 100644 (file)
@@ -1,6 +1,7 @@
 # compiler: creates the binaries
 add_executable(test_configurationfile
     test_configurationfile.cpp
+    ${CMAKE_SOURCE_DIR}/src/boost_assert_handler.cpp
     ${CMAKE_SOURCE_DIR}/src/config/configurationfile.cpp
     ${CMAKE_SOURCE_DIR}/src/config/configurationinterface.cpp
     ${CMAKE_SOURCE_DIR}/src/config/configurationoptions.cpp
index 38f251b..94d69f6 100644 (file)
@@ -1,6 +1,7 @@
 # compiler: creates the binaries
 add_executable(test_configurationoptions
     test_configurationoptions.cpp
+    ${CMAKE_SOURCE_DIR}/src/boost_assert_handler.cpp
     ${CMAKE_SOURCE_DIR}/src/config/configurationoptions.cpp
     ${CMAKE_SOURCE_DIR}/src/config/configuration.cpp
     ${CMAKE_SOURCE_DIR}/src/config/host.cpp
index 2261a76..097a23e 100644 (file)
@@ -1,6 +1,7 @@
 # compiler: creates the binaries
 add_executable(test_hoststatus
     test_hoststatus.cpp
+    ${CMAKE_SOURCE_DIR}/src/boost_assert_handler.cpp
     ${CMAKE_SOURCE_DIR}/src/host/hoststatus.cpp
 )
 
index 1e3cde4..4b58904 100644 (file)
@@ -1,6 +1,7 @@
 # compiler: creates the binaries
 add_executable(test_icmpv4header
     test_icmpv4header.cpp
+    ${CMAKE_SOURCE_DIR}/src/boost_assert_handler.cpp
     ${CMAKE_SOURCE_DIR}/src/icmp/icmpv4header.cpp
     ${CMAKE_SOURCE_DIR}/src/icmp/icmpmessage.cpp
     ${CMAKE_SOURCE_DIR}/src/icmp/icmpdestinationunreachablemessage.cpp
index 53e309c..730f052 100644 (file)
@@ -1,6 +1,7 @@
 # compiler: creates the binaries
 add_executable(test_icmpv6header
     test_icmpv6header.cpp
+    ${CMAKE_SOURCE_DIR}/src/boost_assert_handler.cpp
     ${CMAKE_SOURCE_DIR}/src/icmp/icmpv6header.cpp
     ${CMAKE_SOURCE_DIR}/src/icmp/icmpmessage.cpp
     ${CMAKE_SOURCE_DIR}/src/icmp/icmpdestinationunreachablemessage.cpp
index d97cdd6..ff48865 100644 (file)
@@ -1,6 +1,7 @@
 # compiler: creates the binaries
 add_executable(test_ipv4header
     test_ipv4header.cpp
+    ${CMAKE_SOURCE_DIR}/src/boost_assert_handler.cpp
     ${CMAKE_SOURCE_DIR}/src/ip/ipv4header.cpp
     ${CMAKE_SOURCE_DIR}/src/host/messagepayload.cpp
 )
index 4f308bd..5fcae97 100644 (file)
@@ -1,6 +1,7 @@
 # compiler: creates the binaries
 add_executable(test_ipv6header
     test_ipv6header.cpp
+    ${CMAKE_SOURCE_DIR}/src/boost_assert_handler.cpp
     ${CMAKE_SOURCE_DIR}/src/ip/ipv6header.cpp
     ${CMAKE_SOURCE_DIR}/src/host/messagepayload.cpp
 )
index df6b5da..d4f8c7c 100644 (file)
@@ -1,6 +1,7 @@
 # compiler: creates the binaries
 add_executable(test_linkstatus
     test_linkstatus
+    ${CMAKE_SOURCE_DIR}/src/boost_assert_handler.cpp
     ${CMAKE_SOURCE_DIR}/src/link/linkstatus.cpp
 )
 
index 86da955..236a9bd 100644 (file)
@@ -1,6 +1,7 @@
 # compiler: creates the binaries
 add_executable(test_loglevel
     test_loglevel.cpp
+    ${CMAKE_SOURCE_DIR}/src/boost_assert_handler.cpp
     ${CMAKE_SOURCE_DIR}/src/host/loglevel.cpp
 )
 
index 97f76d7..ef7ea3f 100644 (file)
@@ -1,6 +1,7 @@
 # compiler: creates the binaries
 add_executable(test_logoutput
     test_logoutput.cpp
+    ${CMAKE_SOURCE_DIR}/src/boost_assert_handler.cpp
     ${CMAKE_SOURCE_DIR}/src/host/logoutput.cpp
 )
 
index fa555a7..99ff27e 100644 (file)
@@ -1,6 +1,7 @@
 # compiler: creates the binaries
 add_executable(test_messagepayload
     test_messagepayload.cpp
+    ${CMAKE_SOURCE_DIR}/src/boost_assert_handler.cpp
     ${CMAKE_SOURCE_DIR}/src/host/messagepayload.cpp
 )
 
index bc95fd1..e65c6dc 100644 (file)
@@ -1,6 +1,7 @@
 # compiler: creates the binaries
 add_executable(test_pingprotocol
     test_pingprotocol.cpp
+    ${CMAKE_SOURCE_DIR}/src/boost_assert_handler.cpp
     ${CMAKE_SOURCE_DIR}/src/host/pingprotocol.cpp
 )
 
index 3df0853..3f69afe 100644 (file)
@@ -1,6 +1,7 @@
 # compiler: creates the binaries
 add_executable(test_tcpheader
     test_tcpheader.cpp
+    ${CMAKE_SOURCE_DIR}/src/boost_assert_handler.cpp
     ${CMAKE_SOURCE_DIR}/src/tcp/tcpheader.cpp
     ${CMAKE_SOURCE_DIR}/src/host/messagepayload.cpp
 )