URL:
<http://gna.org/bugs/?24234>
Summary: error building 1.13.2 tests with boost 1.60 [error:
no matching function for call to 'make_test_case(void (*)(const SDL]
Project: Battle for Wesnoth
Submitted by: valdar
Submitted on: Sun 27 Dec 2015 14:28:17 UTC
Category: Bug
Severity: 4 - Important
Priority: 5 - Normal
Item Group: Unit Tests
Status: None
Privacy: Public
Assigned to: None
Originator Email:
Open/Closed: Open
Discussion Lock: Any
Release: 1.32.2
Operating System: linux
_______________________________________________________
Details:
g++ -o build/release/tests/gui/test_save_dialog.o -c -std=c++98 -march=i686
-mtune=generic -O2 -pipe -fstack-protector-strong -W -Wall -O2 -D_GNU_SOURCE=1
-D_REENTRANT -DHAVE_LIBDBUS -DHAVE_FRIBIDI -DHAVE_LIBPNG -DHAVE_HISTORY
-DHAVE_CONFIG_H -D_X11 -DBOOST_TEST_DYN_LINK -Ibuild -Isrc -I/usr/include/SDL
-I/usr/include -I/usr/include/pango-1.0 -I/usr/include/cairo
-I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng16
-I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include
-I/usr/include/libdrm -I/usr/include/dbus-1.0 -I/usr/lib/dbus-1.0/include
-I/usr/include/fribidi src/tests/gui/test_save_dialog.cpp
In file included from src/tests/gui/test_save_dialog.cpp:33:0:
src/tests/utils/auto_parameterized.hpp:44:62: error: no matching function for
call to 'make_test_case(void (*)(const SDLKey&),
boost::unit_test::const_string, SDLKey*&, SDLKey*&)'
BOOST_JOIN(test_name, _begin), BOOST_JOIN(test_name, _end))); \
^
src/tests/gui/test_save_dialog.cpp:55:3: note: in expansion of macro
'WESNOTH_PARAMETERIZED_TEST_CASE'
WESNOTH_PARAMETERIZED_TEST_CASE( test_fake_input, SDLKey,fake_input_keys,
keyid)
^
In file included from
/usr/include/boost/test/tree/auto_registration.hpp:21:0,
from /usr/include/boost/test/unit_test_suite.hpp:17,
from /usr/include/boost/test/unit_test.hpp:19,
from src/tests/gui/test_save_dialog.cpp:17:
/usr/include/boost/test/tree/test_unit.hpp:247:1: note: candidate:
boost::unit_test::test_case* boost::unit_test::make_test_case(const
boost::function<void()>&, boost::unit_test::const_string,
boost::unit_test::const_string, std::size_t)
make_test_case( boost::function<void ()> const& test_func, const_string
tc_name, const_string tc_file, std::siz
^
/usr/include/boost/test/tree/test_unit.hpp:247:1: note: no known conversion
for argument 3 from 'SDLKey*' to boost::unit_test::const_string {aka
boost::unit_test::basic_cstring<const char>}'
/usr/include/boost/test/tree/test_unit.hpp:256:1: note: candidate:
template<class UserTestCase, class InstanceType> boost::unit_test::test_case*
boost::unit_test::make_test_case(void (UserTestCase::*)(),
boost::unit_test::const_string, boost::unit_test::const_string, std::size_t,
boost::shared_ptr<U>)
make_test_case( void (UserTestCase::* test_method )(),
^
/usr/include/boost/test/tree/test_unit.hpp:256:1: note: template argument
deduction/substitution failed:
In file included from src/tests/gui/test_save_dialog.cpp:33:0:
src/tests/utils/auto_parameterized.hpp:44:62: note: mismatched types 'void
(UserTestCase::*)()' and 'void (*)(const SDLKey&)'
BOOST_JOIN(test_name, _begin), BOOST_JOIN(test_name, _end))); \
^
src/tests/gui/test_save_dialog.cpp:55:3: note: in expansion of macro
'WESNOTH_PARAMETERIZED_TEST_CASE'
WESNOTH_PARAMETERIZED_TEST_CASE( test_fake_input, SDLKey,fake_input_keys,
keyid)
^
In file included from src/tests/utils/auto_parameterized.hpp:19:0,
from src/tests/gui/test_save_dialog.cpp:33:
/usr/include/boost/test/parameterized_test.hpp:115:1: note: candidate:
template<class ParamType, class ParamIter>
boost::unit_test::ut_detail::param_test_case_generator<ParamType, ParamIter>
boost::unit_test::make_test_case(const boost::function<void(ParamType)>&,
boost::unit_test::const_string, boost::unit_test::const_string, std::size_t,
ParamIter, ParamIter)
make_test_case( boost::function<void (ParamType)> const& test_func,
/usr/include/boost/test/parameterized_test.hpp:115:1: note: template
argument deduction/substitution failed:
In file included from src/tests/gui/test_save_dialog.cpp:33:0:
src/tests/utils/auto_parameterized.hpp:44:62: note: mismatched types 'const
boost::function<void(ParamType)>' and 'void (*)(const SDLKey&)'
BOOST_JOIN(test_name, _begin), BOOST_JOIN(test_name, _end))); \
^
src/tests/gui/test_save_dialog.cpp:55:3: note: in expansion of macro
'WESNOTH_PARAMETERIZED_TEST_CASE'
WESNOTH_PARAMETERIZED_TEST_CASE( test_fake_input, SDLKey,fake_input_keys,
keyid)
^
In file included from src/tests/utils/auto_parameterized.hpp:19:0,
from src/tests/gui/test_save_dialog.cpp:33:
/usr/include/boost/test/parameterized_test.hpp:130:1: note: candidate:
template<class ParamType, class ParamIter>
boost::unit_test::ut_detail::param_test_case_generator<typename
boost::remove_const<typename boost::remove_reference<T>::type>::type,
ParamIter> boost::unit_test::make_test_case(void (*)(ParamType),
boost::unit_test::const_string, boost::unit_test::const_string, std::size_t,
ParamIter, ParamIter)
make_test_case( void (*test_func)( ParamType ),
^
/usr/include/boost/test/parameterized_test.hpp:130:1: note: template
argument deduction/substitution failed:
In file included from src/tests/gui/test_save_dialog.cpp:33:0:
src/tests/utils/auto_parameterized.hpp:44:62: note: cannot convert
'test::save_dialog::test_fake_input_begin' (type 'SDLKey*') to type
'boost::unit_test::const_string {aka boost::unit_test::basic_cstring<const
char>}'
BOOST_JOIN(test_name, _begin), BOOST_JOIN(test_name, _end))); \
^
src/tests/gui/test_save_dialog.cpp:55:3: note: in expansion of macro
'WESNOTH_PARAMETERIZED_TEST_CASE'
WESNOTH_PARAMETERIZED_TEST_CASE( test_fake_input, SDLKey,fake_input_keys,
keyid)
^
In file included from src/tests/utils/auto_parameterized.hpp:19:0,
from src/tests/gui/test_save_dialog.cpp:33:
/usr/include/boost/test/parameterized_test.hpp:146:1: note: candidate:
template<class UserTestCase, class ParamType, class ParamIter>
boost::unit_test::ut_detail::param_test_case_generator<typename
boost::remove_const<typename boost::remove_reference<U>::type>::type,
ParamIter> boost::unit_test::make_test_case(void (UserTestCase::*)(ParamType),
boost::unit_test::const_string, boost::unit_test::const_string, std::size_t,
const boost::shared_ptr<X>&, ParamIter, ParamIter)
make_test_case( void (UserTestCase::*test_method )( ParamType ),
^
/usr/include/boost/test/parameterized_test.hpp:146:1: note: template
argument deduction/substitution failed:
In file included from src/tests/gui/test_save_dialog.cpp:33:0:
src/tests/utils/auto_parameterized.hpp:44:62: note: mismatched types 'void
(UserTestCase::*)(ParamType)' and void (*)(const SDLKey&)'
BOOST_JOIN(test_name, _begin), BOOST_JOIN(test_name, _end))); \
^
src/tests/gui/test_save_dialog.cpp:55:3: note: in expansion of macro
'WESNOTH_PARAMETERIZED_TEST_CASE'
WESNOTH_PARAMETERIZED_TEST_CASE( test_fake_input, SDLKey,fake_input_keys,
keyid)
src/tests/utils/auto_parameterized.hpp:44:62: error: no matching function for
call to 'make_test_case(void (*)(const SDLKey&),
boost::unit_test::const_string, SDLKey*&, SDLKey*&)'
BOOST_JOIN(test_name, _begin), BOOST_JOIN(test_name, _end))); \
^
src/tests/gui/test_save_dialog.cpp:84:3: note: in expansion of macro
'WESNOTH_PARAMETERIZED_TEST_CASE'
WESNOTH_PARAMETERIZED_TEST_CASE( test_dialog_get_save_name_enter_pressed,
SDLKey, dialog_get_save_name_enter_
^
In file included from
/usr/include/boost/test/tree/auto_registration.hpp:21:0,
from /usr/include/boost/test/unit_test_suite.hpp:17,
from /usr/include/boost/test/unit_test.hpp:19,
from src/tests/gui/test_save_dialog.cpp:17:
/usr/include/boost/test/tree/test_unit.hpp:247:1: note: candidate:
boost::unit_test::test_case* boost::unit_test::make_test_case(const
boost::function<void()>&, boost::unit_test::const_string,
boost::unit_test::const_string, std::size_t)
make_test_case( boost::function<void ()> const& test_func, const_string
tc_name, const_string tc_file, std::siz
^
/usr/include/boost/test/tree/test_unit.hpp:247:1: note: no known conversion
for argument 3 from 'SDLKey*' to boost::unit_test::const_string {aka
boost::unit_test::basic_cstring<const char>}'
/usr/include/boost/test/tree/test_unit.hpp:256:1: note: candidate:
template<class UserTestCase, class InstanceType> boost::unit_test::test_case*
boost::unit_test::make_test_case(void (UserTestCase::*)(),
boost::unit_test::const_string, boost::unit_test::const_string, std::size_t,
boost::shared_ptr<U>)
make_test_case( void (UserTestCase::* test_method )(),
^
/usr/include/boost/test/tree/test_unit.hpp:256:1: note: template argument
deduction/substitution failed:
In file included from src/tests/gui/test_save_dialog.cpp:33:0:
src/tests/utils/auto_parameterized.hpp:44:62: note: mismatched types 'void
(UserTestCase::*)()' and 'void (*)(const SDLKey&)'
BOOST_JOIN(test_name, _begin), BOOST_JOIN(test_name, _end))); \
^
src/tests/gui/test_save_dialog.cpp:84:3: note: in expansion of macro
'WESNOTH_PARAMETERIZED_TEST_CASE'
WESNOTH_PARAMETERIZED_TEST_CASE( test_dialog_get_save_name_enter_pressed,
SDLKey, dialog_get_save_name_enter_
^
In file included from src/tests/utils/auto_parameterized.hpp:19:0,
from src/tests/gui/test_save_dialog.cpp:33:
/usr/include/boost/test/parameterized_test.hpp:115:1: note: candidate:
template<class ParamType, class ParamIter>
boost::unit_test::ut_detail::param_test_case_generator<ParamType, ParamIter>
boost::unit_test::make_test_case(const boost::function<void(ParamType)>&,
boost::unit_test::const_string, boost::unit_test::const_string, std::size_t,
ParamIter, ParamIter)
make_test_case( boost::function<void (ParamType)> const& test_func,
^
/usr/include/boost/test/parameterized_test.hpp:115:1: note: template
argument deduction/substitution failed:
In file included from src/tests/gui/test_save_dialog.cpp:33:0:
src/tests/utils/auto_parameterized.hpp:44:62: note: mismatched types 'const
boost::function<void(ParamType)>' and 'void (*)(const SDLKey&)'
BOOST_JOIN(test_name, _begin), BOOST_JOIN(test_name, _end))); \
src/tests/gui/test_save_dialog.cpp:84:3: note: in expansion of macro
'WESNOTH_PARAMETERIZED_TEST_CASE'
WESNOTH_PARAMETERIZED_TEST_CASE( test_dialog_get_save_name_enter_pressed,
SDLKey, dialog_get_save_name_enter_
^
In file included from src/tests/utils/auto_parameterized.hpp:19:0,
from src/tests/gui/test_save_dialog.cpp:33:
/usr/include/boost/test/parameterized_test.hpp:130:1: note: candidate:
template<class ParamType, class ParamIter>
boost::unit_test::ut_detail::param_test_case_generator<typename
boost::remove_const<typename boost::remove_reference<T>::type>::type,
ParamIter> boost::unit_test::make_test_case(void (*)(ParamType),
boost::unit_test::const_string, boost::unit_test::const_string, std::size_t,
ParamIter, ParamIter)
make_test_case( void (*test_func)( ParamType ),
^
/usr/include/boost/test/parameterized_test.hpp:130:1: note: template
argument deduction/substitution failed:
In file included from src/tests/gui/test_save_dialog.cpp:33:0:
src/tests/utils/auto_parameterized.hpp:44:62: note: cannot convert
'test::save_dialog::test_dialog_get_save_name_enter_pressed_begin' (type
'SDLKey*') to type 'boost::unit_test::const_string {aka
boost::unit_test::basic_cstring<const char>}'
BOOST_JOIN(test_name, _begin), BOOST_JOIN(test_name, _end))); \
^
src/tests/gui/test_save_dialog.cpp:84:3: note: in expansion of macro
'WESNOTH_PARAMETERIZED_TEST_CASE'
WESNOTH_PARAMETERIZED_TEST_CASE( test_dialog_get_save_name_enter_pressed,
SDLKey, dialog_get_save_name_enter_
^
In file included from src/tests/utils/auto_parameterized.hpp:19:0,
from src/tests/gui/test_save_dialog.cpp:33:
/usr/include/boost/test/parameterized_test.hpp:146:1: note: candidate:
template<class UserTestCase, class ParamType, class ParamIter>
boost::unit_test::ut_detail::param_test_case_generator<typename
boost::remove_const<typename boost::remove_reference<U>::type>::type,
ParamIter> boost::unit_test::make_test_case(void (UserTestCase::*)(ParamType),
boost::unit_test::const_string, boost::unit_test::const_string, std::size_t,
const boost::shared_ptr<X>&, ParamIter, ParamIter)
make_test_case( void (UserTestCase::*test_method )( ParamType ),
^
/usr/include/boost/test/parameterized_test.hpp:146:1: note: template
argument deduction/substitution failed:
In file included from src/tests/gui/test_save_dialog.cpp:33:0:
src/tests/utils/auto_parameterized.hpp:44:62: note: mismatched types 'void
(UserTestCase::*)(ParamType)' and void (*)(const SDLKey&)'
BOOST_JOIN(test_name, _begin), BOOST_JOIN(test_name, _end))); \
^
src/tests/gui/test_save_dialog.cpp:84:3: note: in expansion of macro
'WESNOTH_PARAMETERIZED_TEST_CASE'
WESNOTH_PARAMETERIZED_TEST_CASE( test_dialog_get_save_name_enter_pressed,
SDLKey, dialog_get_save_name_enter_
^
scons: *** [build/release/tests/gui/test_save_dialog.o] Error 1
scons: building terminated because of errors.
_______________________________________________________
Reply to this item at:
<http://gna.org/bugs/?24234>
_______________________________________________
Message sent via/by Gna!
http://gna.org/
_______________________________________________
Wesnoth-bugs mailing list
[email protected]
https://mail.gna.org/listinfo/wesnoth-bugs