out param rating must show defined behaviour in all cases sync
authorVolker Birk <vb@pep-project.org>
Fri, 15 Mar 2019 13:38:18 +0100
branchsync
changeset 33373d3c340df731
parent 3336 bea05d3b250e
child 3338 e4906a775c0c
out param rating must show defined behaviour in all cases
src/message_api.c
test/src/SuiteMaker.cc
     1.1 --- a/src/message_api.c	Fri Mar 15 12:48:33 2019 +0100
     1.2 +++ b/src/message_api.c	Fri Mar 15 13:38:18 2019 +0100
     1.3 @@ -4069,6 +4069,8 @@
     1.4      if (!(session && ident && rating))
     1.5          return PEP_ILLEGAL_VALUE;
     1.6  
     1.7 +    *rating = PEP_rating_undefined;
     1.8 +
     1.9      if (ident->me)
    1.10          status = _myself(session, ident, false, true);
    1.11      else
     2.1 --- a/test/src/SuiteMaker.cc	Fri Mar 15 12:48:33 2019 +0100
     2.2 +++ b/test/src/SuiteMaker.cc	Fri Mar 15 13:38:18 2019 +0100
     2.3 @@ -35,7 +35,6 @@
     2.4  #include "Engine358Tests.h"
     2.5  #include "BlacklistAcceptNewKeyTests.h"
     2.6  #include "DecryptAttachPrivateKeyUntrustedTests.h"
     2.7 -#include "ReturnMistrustFprTests.h"
     2.8  #include "BlacklistTests.h"
     2.9  #include "RevokeRegenAttachTests.h"
    2.10  #include "PepSubjectReceivedTests.h"
    2.11 @@ -87,7 +86,6 @@
    2.12      "Engine358Tests",
    2.13      "BlacklistAcceptNewKeyTests",
    2.14      "DecryptAttachPrivateKeyUntrustedTests",
    2.15 -    "ReturnMistrustFprTests",
    2.16      "BlacklistTests",
    2.17      "RevokeRegenAttachTests",
    2.18      "PepSubjectReceivedTests",
    2.19 @@ -116,7 +114,7 @@
    2.20  };
    2.21  
    2.22  // This file is generated, so magic constants are ok.
    2.23 -int SuiteMaker::num_suites = 49;
    2.24 +int SuiteMaker::num_suites = 48;
    2.25  
    2.26  void SuiteMaker::suitemaker_build(const char* test_class_name, const char* test_home, Test::Suite** test_suite) {
    2.27      if (strcmp(test_class_name, "MimeTests") == 0)
    2.28 @@ -165,8 +163,6 @@
    2.29          *test_suite = new BlacklistAcceptNewKeyTests(test_class_name, test_home);
    2.30      else if (strcmp(test_class_name, "DecryptAttachPrivateKeyUntrustedTests") == 0)
    2.31          *test_suite = new DecryptAttachPrivateKeyUntrustedTests(test_class_name, test_home);
    2.32 -    else if (strcmp(test_class_name, "ReturnMistrustFprTests") == 0)
    2.33 -        *test_suite = new ReturnMistrustFprTests(test_class_name, test_home);
    2.34      else if (strcmp(test_class_name, "BlacklistTests") == 0)
    2.35          *test_suite = new BlacklistTests(test_class_name, test_home);
    2.36      else if (strcmp(test_class_name, "RevokeRegenAttachTests") == 0)