Skip to content
Snippets Groups Projects
Commit 6370ce54 authored by 's avatar
Browse files

remove more bad tests from instancetracker tests

parent 3fd50983
No related branches found
No related tags found
No related merge requests found
...@@ -190,55 +190,7 @@ namespace tut ...@@ -190,55 +190,7 @@ namespace tut
} }
template<> template<> template<> template<>
void object::test<6>() void object::test<5>()
{
#if defined(LL_CPP11)
skip("Skip on c++11 for now. Exceptions in destructors are unsafe by default.");
#endif
set_test_name("delete Keyed with outstanding key_iter");
std::string what;
Keyed* keyed = new Keyed("delete Keyed with outstanding key_it");
{
WrapLLErrs wrapper;
Keyed::key_iter i(Keyed::beginKeys());
try
{
delete keyed;
}
catch (const WrapLLErrs::FatalException& e)
{
what = e.what();
}
}
ensure(! what.empty());
}
template<> template<>
void object::test<7>()
{
#if defined(LL_CPP11)
skip("Skip on c++11 for now. Exceptions in destructors are unsafe by default.");
#endif
set_test_name("delete Unkeyed with outstanding instance_iter");
std::string what;
Unkeyed* unkeyed = new Unkeyed;
{
WrapLLErrs wrapper;
Unkeyed::instance_iter i(Unkeyed::beginInstances());
try
{
delete unkeyed;
}
catch (const WrapLLErrs::FatalException& e)
{
what = e.what();
}
}
ensure(! what.empty());
}
template<> template<>
void object::test<8>()
{ {
set_test_name("exception in subclass ctor"); set_test_name("exception in subclass ctor");
typedef std::set<Unkeyed*> InstanceSet; typedef std::set<Unkeyed*> InstanceSet;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment