Skipping some tests due to compiler bug.

It is better to skip such tests on AppVeyor to detect regression.
This commit is contained in:
Kohei Takahashi
2017-10-18 23:09:27 +09:00
parent 99699ede5d
commit e992658ce3
2 changed files with 6 additions and 0 deletions

View File

@ -51,6 +51,8 @@ int main()
BOOST_TEST(y.w.value == 42);
}
// Older MSVCs don't generate move ctor by default.
#if !(defined(RUNNING_ON_APPVEYOR) && BOOST_WORKAROUND(BOOST_MSVC, < 1900))
{
ns::value<wrapper> x;
ns::value<wrapper> y(std::move(x)); // move
@ -68,6 +70,7 @@ int main()
BOOST_TEST(x.w.value == 0);
BOOST_TEST(y.w.value == 0);
}
#endif // !(appveyor && msvc < 14.0)
return boost::report_errors();
}