Kea
2.7.5
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
21
runningOnValgrind
() {
22
return
(RUNNING_ON_VALGRIND != 0);
23
}
24
#else
25
bool
26
runningOnValgrind
() {
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
isc::util::unittests::runningOnValgrind
bool runningOnValgrind()
Check if the program is run in valgrind.
Definition
check_valgrind.cc:26
isc
Defines the logger used by the top-level component of kea-lfc.
Definition
agent_parser.cc:148
src
lib
util
unittests
check_valgrind.cc
Generated on Wed Nov 20 2024 11:53:25 for Kea by
1.10.0