Skip to content

Commit 1a55f72

Browse files
committed
iox-#1613 Use cxx::function for temporary error handler to make leak sanitizer play nice with EXPECT_FATAL_FAILURE
1 parent 9308256 commit 1a55f72

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

iceoryx_hoofs/testing/include/iceoryx_hoofs/testing/mocks/error_handler_mock.hpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
#ifndef IOX_HOOFS_TESTUTILS_ERROR_HANDLER_MOCK_HPP
1717
#define IOX_HOOFS_TESTUTILS_ERROR_HANDLER_MOCK_HPP
1818

19+
#include "iceoryx_hoofs/cxx/function.hpp"
1920
#include "iceoryx_hoofs/error_handling/error_handler.hpp"
2021
#include <mutex>
2122

@@ -24,7 +25,7 @@
2425
namespace iox
2526
{
2627
template <typename Error>
27-
using TypedHandlerFunction = std::function<void(const Error, const ErrorLevel)>;
28+
using TypedHandlerFunction = cxx::function<void(const Error, const ErrorLevel)>;
2829

2930
/// @brief This mock is needed for unit testing, special debugging cases and
3031
/// other corner cases where we'd like to explicitly suppress the

0 commit comments

Comments
 (0)