Fixed: cpptest is using std::auto_ptr

--HG--
branch : develop
This commit is contained in:
kervala 2016-12-21 14:51:09 +01:00
parent 1b1e08b7f6
commit 03ad7b63d4
4 changed files with 21 additions and 21 deletions

View file

@ -134,9 +134,9 @@ int main(int argc, char *argv[])
{ {
Test::Suite ts; Test::Suite ts;
ts.add(CUniquePtr<Test::Suite>(new CUTMisc)); ts.add(std::auto_ptr<Test::Suite>(new CUTMisc));
ts.add(CUniquePtr<Test::Suite>(new CUTNet)); ts.add(std::auto_ptr<Test::Suite>(new CUTNet));
ts.add(CUniquePtr<Test::Suite>(new CUTLigo)); ts.add(std::auto_ptr<Test::Suite>(new CUTLigo));
// Add a line here when adding a new test MODULE // Add a line here when adding a new test MODULE
CUniquePtr<Test::Output> output(cmdline(argc, argv)); CUniquePtr<Test::Output> output(cmdline(argc, argv));

View file

@ -26,7 +26,7 @@ struct CUTLigo : public Test::Suite
{ {
CUTLigo() CUTLigo()
{ {
add(CUniquePtr<Test::Suite>(new CUTLigoPrimitive)); add(std::auto_ptr<Test::Suite>(new CUTLigoPrimitive));
// Add a line here when adding a new test CLASS // Add a line here when adding a new test CLASS
} }
}; };

View file

@ -37,20 +37,20 @@ struct CUTMisc : public Test::Suite
{ {
CUTMisc() CUTMisc()
{ {
add(CUniquePtr<Test::Suite>(new CUTMiscCoTask)); add(std::auto_ptr<Test::Suite>(new CUTMiscCoTask));
add(CUniquePtr<Test::Suite>(new CUTMiscCommand)); add(std::auto_ptr<Test::Suite>(new CUTMiscCommand));
add(CUniquePtr<Test::Suite>(new CUTMiscCommon)); add(std::auto_ptr<Test::Suite>(new CUTMiscCommon));
add(CUniquePtr<Test::Suite>(new CUTMiscConfigFile)); add(std::auto_ptr<Test::Suite>(new CUTMiscConfigFile));
add(CUniquePtr<Test::Suite>(new CUTMiscDebug)); add(std::auto_ptr<Test::Suite>(new CUTMiscDebug));
add(CUniquePtr<Test::Suite>(new CUTMiscDynLibLoad)); add(std::auto_ptr<Test::Suite>(new CUTMiscDynLibLoad));
add(CUniquePtr<Test::Suite>(new CUTMiscFile)); add(std::auto_ptr<Test::Suite>(new CUTMiscFile));
add(CUniquePtr<Test::Suite>(new CUTMiscPackFile)); add(std::auto_ptr<Test::Suite>(new CUTMiscPackFile));
add(CUniquePtr<Test::Suite>(new CUTMiscSingleton)); add(std::auto_ptr<Test::Suite>(new CUTMiscSingleton));
add(CUniquePtr<Test::Suite>(new CUTMiscSString)); add(std::auto_ptr<Test::Suite>(new CUTMiscSString));
add(CUniquePtr<Test::Suite>(new CUTMiscStream)); add(std::auto_ptr<Test::Suite>(new CUTMiscStream));
add(CUniquePtr<Test::Suite>(new CUTMiscVariable)); add(std::auto_ptr<Test::Suite>(new CUTMiscVariable));
add(CUniquePtr<Test::Suite>(new CUTMiscTypes)); add(std::auto_ptr<Test::Suite>(new CUTMiscTypes));
add(CUniquePtr<Test::Suite>(new CUTMiscStringCommon)); add(std::auto_ptr<Test::Suite>(new CUTMiscStringCommon));
// Add a line here when adding a new test CLASS // Add a line here when adding a new test CLASS
} }
}; };

View file

@ -28,9 +28,9 @@ struct CUTNet : public Test::Suite
{ {
CUTNet() CUTNet()
{ {
add(CUniquePtr<Test::Suite>(new CUTNetLayer3)); add(std::auto_ptr<Test::Suite>(new CUTNetLayer3));
add(CUniquePtr<Test::Suite>(new CUTNetMessage)); add(std::auto_ptr<Test::Suite>(new CUTNetMessage));
add(CUniquePtr<Test::Suite>(new CUTNetModule)); add(std::auto_ptr<Test::Suite>(new CUTNetModule));
// Add a line here when adding a new test CLASS // Add a line here when adding a new test CLASS
} }
}; };