Skip to content

Commit de15de1

Browse files
committed
Add test helpers for Boost.Test
1 parent db9b9e0 commit de15de1

1 file changed

Lines changed: 14 additions & 0 deletions

File tree

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
// Copyright (C) 2001 Gennadiy Rozental
2+
// Copyright (C) 2005 - 2021 Settlers Freaks (sf-team at siedler25.org)
3+
//
4+
// SPDX-License-Identifier: BSL-1.0
5+
6+
#pragma once
7+
8+
#include <boost/version.hpp>
9+
10+
#if BOOST_VERSION < 107000
11+
# define BOOST_TEST_INFO_SCOPE(context_descr) \
12+
::boost::test_tools::tt_detail::context_frame BOOST_JOIN(context_frame_, __LINE__) = \
13+
::boost::test_tools::tt_detail::context_frame(BOOST_TEST_LAZY_MSG(context_descr))
14+
#endif

0 commit comments

Comments
 (0)