Skip to content

Commit

Permalink
Fix unit tests that did not return report_errors()
Browse files Browse the repository at this point in the history
  • Loading branch information
glenfe committed Sep 17, 2018
1 parent 389b204 commit 5f20612
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 4 deletions.
3 changes: 2 additions & 1 deletion test/regression/bug5824.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
#include <boost/phoenix/core.hpp>
#include <boost/phoenix/operator.hpp>

#include <boost/detail/lightweight_test.hpp>
#include <boost/core/lightweight_test.hpp>

using namespace boost::phoenix::arg_names;

Expand All @@ -21,4 +21,5 @@ int main()
int a = 0;
(++arg1, ++arg1)(a);
BOOST_TEST(a == 2);
return boost::report_errors();
}
3 changes: 2 additions & 1 deletion test/regression/bug7624.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

#include <boost/phoenix.hpp>
#include <boost/range/as_literal.hpp>
#include <boost/detail/lightweight_test.hpp>
#include <boost/core/lightweight_test.hpp>

using namespace boost::phoenix::placeholders;
using namespace boost::phoenix;
Expand All @@ -27,4 +27,5 @@ int main()
#endif
BOOST_TEST(X == *Y);

return boost::report_errors();
}
3 changes: 2 additions & 1 deletion test/statement/bug5715.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
#include <boost/phoenix/statement/sequence.hpp>
#include <boost/phoenix/bind.hpp>

#include <boost/detail/lightweight_test.hpp>
#include <boost/core/lightweight_test.hpp>

namespace test
{
Expand All @@ -33,4 +33,5 @@ int main()
BOOST_TEST(test::x == 0);
BOOST_TEST(test::y == 1);
BOOST_TEST(test::z == 1);
return boost::report_errors();
}
3 changes: 2 additions & 1 deletion test/stdlib/cmath.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
#include <boost/phoenix/core.hpp>
#include <boost/phoenix/operator.hpp>
#include <boost/phoenix/stl/cmath.hpp>
#include <boost/detail/lightweight_test.hpp>
#include <boost/core/lightweight_test.hpp>

int main()
{
Expand All @@ -27,4 +27,5 @@ int main()
BOOST_TEST(!f(0.0, eps));
BOOST_TEST(std::fabs(x-4.) < eps );
BOOST_TEST(std::fabs(z-1.) < eps );
return boost::report_errors();
}

0 comments on commit 5f20612

Please sign in to comment.