summaryrefslogtreecommitdiff
path: root/TAO/tests/Sequence_Unit_Tests/testing_allocation_traits_ut.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'TAO/tests/Sequence_Unit_Tests/testing_allocation_traits_ut.cpp')
-rw-r--r--TAO/tests/Sequence_Unit_Tests/testing_allocation_traits_ut.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/TAO/tests/Sequence_Unit_Tests/testing_allocation_traits_ut.cpp b/TAO/tests/Sequence_Unit_Tests/testing_allocation_traits_ut.cpp
index de4426c4f16..f74c9b81809 100644
--- a/TAO/tests/Sequence_Unit_Tests/testing_allocation_traits_ut.cpp
+++ b/TAO/tests/Sequence_Unit_Tests/testing_allocation_traits_ut.cpp
@@ -17,7 +17,7 @@
try { statement; } catch(...) { \
BOOST_ERROR("unexpected exception raised"); }
-using namespace TAO_VERSIONED_NAMESPACE_NAME::TAO::details;
+using namespace TAO::details;
using namespace boost::unit_test_framework;
@@ -172,30 +172,30 @@ private:
struct Foo { int y; };
-ACE_Proper_Export_Flag test_suite *
+test_suite *
init_unit_test_suite(int, char*[])
{
- test_suite * ts =
- BOOST_TEST_SUITE("testing allocation traits unit test");
+ std::auto_ptr<test_suite> ts(
+ BOOST_TEST_SUITE("testing allocation traits unit test"));
{
boost::shared_ptr<Tester<int> > tester(
Tester<int>::allocate());
- tester->add_all(ts);
+ tester->add_all(ts.get());
}
{
boost::shared_ptr<Tester<Foo> > tester(
Tester<Foo>::allocate());
- tester->add_all(ts);
+ tester->add_all(ts.get());
}
{
boost::shared_ptr<Tester<char*> > tester(
Tester<char*>::allocate());
- tester->add_all(ts);
+ tester->add_all(ts.get());
}
- return ts;
+ return ts.release();
}