gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[gnunet] 03/03: NAMESTORE: Fix test memory corruption (still fishy; caus


From: gnunet
Subject: [gnunet] 03/03: NAMESTORE: Fix test memory corruption (still fishy; cause unknown)
Date: Wed, 08 Nov 2023 17:09:24 +0100

This is an automated email from the git hooks/post-receive script.

martin-schanzenbach pushed a commit to branch master
in repository gnunet.

commit 03607140c1868109c3903634906ab45ce60db288
Author: Martin Schanzenbach <schanzen@gnunet.org>
AuthorDate: Wed Nov 8 17:09:17 2023 +0100

    NAMESTORE: Fix test memory corruption (still fishy; cause unknown)
---
 src/service/namestore/meson.build                       |  5 ++++-
 src/service/namestore/test_namestore_api_store_update.c | 11 ++---------
 2 files changed, 6 insertions(+), 10 deletions(-)

diff --git a/src/service/namestore/meson.build 
b/src/service/namestore/meson.build
index 616c8ad01..4169e7fde 100644
--- a/src/service/namestore/meson.build
+++ b/src/service/namestore/meson.build
@@ -65,7 +65,6 @@ configure_file(copy: true,
                output: 'test_namestore_api_sqlite.conf')
 
 namestoreapitestnames = [
-  'test_namestore_api_edit_records',
   'test_namestore_api_lookup_nick',
   'test_namestore_api_monitoring',
   'test_namestore_api_monitoring_existing',
@@ -81,6 +80,10 @@ namestoreapitestnames = [
   'test_namestore_api_zone_to_name'
   ]
 
+if get_option('experimental')
+  namestoreapitestnames +='test_namestore_api_edit_records'
+endif
+
 foreach tn : namestoreapitestnames
   t = executable (tn + '_sqlite',
             [tn + '.c'],
diff --git a/src/service/namestore/test_namestore_api_store_update.c 
b/src/service/namestore/test_namestore_api_store_update.c
index 86495e261..70c97137d 100644
--- a/src/service/namestore/test_namestore_api_store_update.c
+++ b/src/service/namestore/test_namestore_api_store_update.c
@@ -168,7 +168,6 @@ static void
 put_cont (void *cls,
           enum GNUNET_ErrorCode ec)
 {
-  const char *name = cls;
   struct GNUNET_HashCode derived_hash;
 
   nsqe = NULL;
@@ -177,13 +176,6 @@ put_cont (void *cls,
               "Name store added record for `%s': %s\n",
               name,
               (GNUNET_EC_NONE == ec) ? "SUCCESS" : "FAIL");
-  /* Create derived hash */
-  GNUNET_GNSRECORD_query_from_private_key (&privkey,
-                                           name,
-                                           &derived_hash);
-  GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
-              "Looking in namestore for `%s'\n",
-              GNUNET_h2s (&derived_hash));
   nsqe = GNUNET_NAMESTORE_records_lookup (nsh,
                                           &privkey,
                                           name,
@@ -222,6 +214,7 @@ run (void *cls,
 
   nsh = GNUNET_NAMESTORE_connect (cfg);
   GNUNET_break (NULL != nsh);
+
   nsqe = GNUNET_NAMESTORE_records_store (nsh,
                                          &privkey,
                                          name,
@@ -251,7 +244,7 @@ main (int argc,
   SETUP_CFG (plugin_name, cfg_name);
   res = 1;
   if (0 !=
-      GNUNET_TESTING_peer_run ("test--store-update",
+      GNUNET_TESTING_peer_run ("test-namestore-store-update",
                                cfg_name,
                                &run,
                                NULL))

-- 
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]