Subject: Re: [Boost-bugs] [Boost C++ Libraries] #12948: Unexpected snprintf result is on Android ARM
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2017-04-06 18:09:17
#12948: Unexpected snprintf result is on Android ARM
------------------------------------+----------------------
Reporter: Lev Sch <zorechfan@â¦> | Owner: olli
Type: Bugs | Status: reopened
Milestone: To Be Determined | Component: context
Version: Boost 1.64.0 | Severity: Problem
Resolution: | Keywords:
------------------------------------+----------------------
Comment (by Lev Sch <zorechfan@â¦>):
{{{
04-06 18:05:02.569 3639 3639 D boostTest: Executable ABI=x86_64
04-06 18:05:02.569 3639 3639 D boostTest: void runBoostTests() 91 BEGIN
TESTS
04-06 18:05:02.578 3639 3639 D boostTest: Running 15 test cases...
04-06 18:05:02.578 3639 3639 D boostTest: lineA:352, i=3, j=1
04-06 18:05:02.578 3639 3639 D boostTest: lineD:240, i=3, j=1
04-06 18:05:02.578 3639 3639 D boostTest: lineB:359, x=1, y=3
04-06 18:05:02.578 3639 3639 D boostTest: lineE:244, i=-2, j=4
04-06 18:05:02.578 3639 3639 D boostTest: lineC:364, i=-2, j=4
04-06 18:05:02.578 3639 3639 D boostTest:
C:/temp/boostDevelop/boost/libs/context/test/test_callcc.cpp(365): error:
in "Boost.Context: callcc test suite/_test_ontop": check i == 2 has failed
[-2 != 2]
04-06 18:05:02.578 3639 3639 D boostTest: void runBoostTests() 182 END
OF TESTS
}}}
{{{
ctx::continuation fn17( ctx::continuation && c) {
int i; int j;
std::tie( i, j) = c.get_data< int, int >();
LOG_MACRO("lineD",i, j);
for (;;) {
c = c.resume( i, j);
std::tie( i, j) = c.get_data< int, int >();
LOG_MACRO("lineE",i, j);
}
return std::move( c);
}
}}}
{{{
{
int i = 3, j = 1;
LOG_MACRO("lineA",i, j);
ctx::continuation c;
c = ctx::callcc( fn17, i, j);
c = c.resume_with(
[](ctx::continuation && c){
int x, y;
std::tie( x, y) = c.get_data< int, int >();
LOG_MACRO("lineB",x, y);
return std::make_tuple( x - y, x + y);
},
i, j);
std::tie( i, j) = c.get_data< int, int >();
LOG_MACRO("lineC",i, j);
BOOST_CHECK_EQUAL( i, 2);
BOOST_CHECK_EQUAL( j, 4);
}
}}}
{{{
#define LOG_MACRO(name,theX,theY) BOOST_TEST_MESSAGE( name << ":" <<
__LINE__ << ", " #theX "=" << (theX) << ", " #theY "=" << (theY));
}}}
-- Ticket URL: <https://svn.boost.org/trac/boost/ticket/12948#comment:37> Boost C++ Libraries <http://www.boost.org/> Boost provides free peer-reviewed portable C++ source libraries.
This archive was generated by hypermail 2.1.7 : 2017-04-06 18:12:20 UTC