Upgraded to cpptest 2.0.0 compatibility - pre 2.0.0 cpptest will no longer compile! (There's no define to operate on for conditional compilation here, so I am just unilaterally upgrading, since the release is from January, and the previous release is more than 2 years old... sync
authorKrista 'DarthMama' Bennett <krista@pep.foundation>
Fri, 10 May 2019 14:07:57 +0200
branchsync
changeset 36605baccf081566
parent 3659 bd1c82a4f0ff
child 3661 448ed57fac2c
child 3662 54d7ca4f7529
Upgraded to cpptest 2.0.0 compatibility - pre 2.0.0 cpptest will no longer compile! (There's no define to operate on for conditional compilation here, so I am just unilaterally upgrading, since the release is from January, and the previous release is more than 2 years old...
test/src/SuiteMaker.cc
test/src/TestDriver.cc
     1.1 --- a/test/src/SuiteMaker.cc	Fri May 10 11:35:31 2019 +0200
     1.2 +++ b/test/src/SuiteMaker.cc	Fri May 10 14:07:57 2019 +0200
     1.3 @@ -67,6 +67,7 @@
     1.4  #include "OwnKeysRetrieveTests.h"
     1.5  #include "TrustManipulationTests.h"
     1.6  #include "SyncTests.h"
     1.7 +#include "RevocationTests.h"
     1.8  #include "AppleMailTests.h"
     1.9  
    1.10  
    1.11 @@ -126,11 +127,12 @@
    1.12      "OwnKeysRetrieveTests",
    1.13      "TrustManipulationTests",
    1.14      "SyncTests",
    1.15 +    "RevocationTests",
    1.16      "AppleMailTests",
    1.17  };
    1.18  
    1.19  // This file is generated, so magic constants are ok.
    1.20 -int SuiteMaker::num_suites = 56;
    1.21 +int SuiteMaker::num_suites = 57;
    1.22  
    1.23  void SuiteMaker::suitemaker_build(const char* test_class_name, const char* test_home, Test::Suite** test_suite) {
    1.24      if (strcmp(test_class_name, "MimeTests") == 0)
    1.25 @@ -243,6 +245,8 @@
    1.26          *test_suite = new TrustManipulationTests(test_class_name, test_home);
    1.27      else if (strcmp(test_class_name, "SyncTests") == 0)
    1.28          *test_suite = new SyncTests(test_class_name, test_home);
    1.29 +    else if (strcmp(test_class_name, "RevocationTests") == 0)
    1.30 +        *test_suite = new RevocationTests(test_class_name, test_home);
    1.31      else if (strcmp(test_class_name, "AppleMailTests") == 0)
    1.32          *test_suite = new AppleMailTests(test_class_name, test_home);
    1.33  }
     2.1 --- a/test/src/TestDriver.cc	Fri May 10 11:35:31 2019 +0200
     2.2 +++ b/test/src/TestDriver.cc	Fri May 10 14:07:57 2019 +0200
     2.3 @@ -65,8 +65,8 @@
     2.4          SuiteMaker::suitemaker_buildlist(&argv[1], argc - MIN_ARGC, common_test_home.c_str(), suites_to_run);
     2.5          
     2.6      for (std::vector<Test::Suite*>::iterator it = suites_to_run.begin(); it != suites_to_run.end(); ++it) {
     2.7 -        auto_ptr<Test::Suite> suite(*it);
     2.8 -        test_runner->add(suite); 
     2.9 +        unique_ptr<Test::Suite> suite(*it);
    2.10 +        test_runner->add(move(suite)); 
    2.11      }
    2.12  
    2.13      Test::Output* output = new Test::pEpTestOutput(); // blah