From fc83a2e3af7ceb6eaeaf6c952f19f25385d0282e Mon Sep 17 00:00:00 2001 From: Peter Dimov Date: Sat, 20 Apr 2019 13:09:18 +0300 Subject: [PATCH] Fix expected failures when no rvalue references --- test/lightweight_test_fail12.cpp | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/test/lightweight_test_fail12.cpp b/test/lightweight_test_fail12.cpp index bf0ce59..fb3e0ac 100644 --- a/test/lightweight_test_fail12.cpp +++ b/test/lightweight_test_fail12.cpp @@ -52,10 +52,17 @@ int main() BOOST_TEST_TRAIT_SAME(I3, I4); BOOST_TEST_TRAIT_SAME(I5, I6); BOOST_TEST_TRAIT_SAME(I7, I8); + + int expected = 14; + #if !defined(BOOST_NO_CXX11_RVALUE_REFERENCES) + BOOST_TEST_TRAIT_SAME(I9, I10); BOOST_TEST_TRAIT_SAME(I11, I12); + + expected += 2; + #endif - return boost::report_errors() == 16; + return boost::report_errors() == expected; }