Update tests for make_shared and allocate_shared array forms, for normal case, initializer lists, variadic template arguments, for arrays and fixed size arrays.

[SVN r81299]
This commit is contained in:
Glen Fernandes
2012-11-11 19:14:50 +00:00
parent fa513340d7
commit 25e11b20d3
12 changed files with 375 additions and 41 deletions
+2 -2
View File
@@ -34,7 +34,7 @@ int main() {
try {
a1[0].shared_from_this();
BOOST_ERROR("shared_from_this did not throw");
} catch (const boost::bad_weak_ptr&) {
} catch (...) {
BOOST_TEST(type::instances == 3);
}
}
@@ -44,7 +44,7 @@ int main() {
try {
a1[0].shared_from_this();
BOOST_ERROR("shared_from_this did not throw");
} catch (const boost::bad_weak_ptr&) {
} catch (...) {
BOOST_TEST(type::instances == 3);
}
}