Kea  1.9.9-git
check_valgrind.cc
Go to the documentation of this file.
1 // Copyright (C) 2012-2015 Internet Systems Consortium, Inc. ("ISC")
2 //
3 // This Source Code Form is subject to the terms of the Mozilla Public
4 // License, v. 2.0. If a copy of the MPL was not distributed with this
5 // file, You can obtain one at http://mozilla.org/MPL/2.0/.
6 
7 #include <config.h>
8 
9 namespace isc {
10 namespace util {
11 namespace unittests {
12 
13 #if HAVE_VALGRIND_HEADERS
14 #include <valgrind/valgrind.h>
20 bool
22  return (RUNNING_ON_VALGRIND != 0);
23 }
24 #else
25 bool
27  return (false);
28 }
29 #endif // HAVE_VALGRIND_HEADERS
30 
31 } // end of namespace unittests
32 } // end of namespace util
33 } // end of namespace isc
bool runningOnValgrind()
Check if the program is run in valgrind.
Defines the logger used by the top-level component of kea-dhcp-ddns.