# HG changeset patch # User Krista 'DarthMama' Bennett # Date 1553091924 -3600 # Node ID 1c117fa0df8e5febb430a3fe5e9b00b5b5ce0c0f # Parent 4320b0f44436c2a590329cd51819d7e2a19b8855 Tests for ENGINE-527 (checks on username) diff -r 4320b0f44436 -r 1c117fa0df8e src/pEpEngine.c --- a/src/pEpEngine.c Wed Mar 20 12:21:38 2019 +0100 +++ b/src/pEpEngine.c Wed Mar 20 15:25:24 2019 +0100 @@ -79,6 +79,7 @@ "select id, word from wordlist where lang = lower(?1) " "and id = ?2 ;"; +// FIXME?: problems if we don't have a key for the user - we get nothing static const char *sql_get_identity = "select fpr, username, comm_type, lang," " identity.flags | pgp_keypair.flags," diff -r 4320b0f44436 -r 1c117fa0df8e test/src/SuiteMaker.cc --- a/test/src/SuiteMaker.cc Wed Mar 20 12:21:38 2019 +0100 +++ b/test/src/SuiteMaker.cc Wed Mar 20 15:25:24 2019 +0100 @@ -18,6 +18,7 @@ #include "Engine463Tests.h" #include "BloblistTests.h" #include "NewUpdateIdAndMyselfTests.h" +#include "NoOwnIdentWritesOnDecryptTests.h" #include "I18nTests.h" #include "IdentityListTests.h" #include "PgpBinaryTests.h" @@ -67,6 +68,7 @@ "Engine463Tests", "BloblistTests", "NewUpdateIdAndMyselfTests", + "NoOwnIdentWritesOnDecryptTests", "I18nTests", "IdentityListTests", "PgpBinaryTests", @@ -110,7 +112,7 @@ }; // This file is generated, so magic constants are ok. -int SuiteMaker::num_suites = 46; +int SuiteMaker::num_suites = 47; void SuiteMaker::suitemaker_build(const char* test_class_name, const char* test_home, Test::Suite** test_suite) { if (strcmp(test_class_name, "MimeTests") == 0) @@ -125,6 +127,8 @@ *test_suite = new BloblistTests(test_class_name, test_home); else if (strcmp(test_class_name, "NewUpdateIdAndMyselfTests") == 0) *test_suite = new NewUpdateIdAndMyselfTests(test_class_name, test_home); + else if (strcmp(test_class_name, "NoOwnIdentWritesOnDecryptTests") == 0) + *test_suite = new NoOwnIdentWritesOnDecryptTests(test_class_name, test_home); else if (strcmp(test_class_name, "I18nTests") == 0) *test_suite = new I18nTests(test_class_name, test_home); else if (strcmp(test_class_name, "IdentityListTests") == 0)