update clang-format
[oweals/gnunet.git] / src / namestore / test_namestore_api_remove.c
index 7d993d4d94aed8c35412c1505a6628d1ec2afbb6..4c3d55efc6f60d10cc680b5710777ac15c562369 100644 (file)
@@ -14,6 +14,8 @@
     
      You should have received a copy of the GNU Affero General Public License
      along with this program.  If not, see <http://www.gnu.org/licenses/>.
+
+     SPDX-License-Identifier: AGPL3.0-or-later
 */
 /**
  * @file namestore/test_namestore_api.c
@@ -125,6 +127,7 @@ put_cont (void *cls,
   const char *name = cls;
 
   GNUNET_assert (NULL != cls);
+  nsqe = NULL;
   if (GNUNET_SYSERR == success)
   {
     GNUNET_break (0);
@@ -194,18 +197,16 @@ run (void *cls,
 }
 
 
+#include "test_common.c"
+
+
 int
 main (int argc, char *argv[])
 {
   const char *plugin_name;
   char *cfg_name;
 
-  plugin_name = GNUNET_TESTING_get_testname_from_underscore (argv[0]);
-  GNUNET_asprintf (&cfg_name,
-                   "test_namestore_api_%s.conf",
-                   plugin_name);
-  GNUNET_DISK_purge_cfg_dir (cfg_name,
-                             "GNUNET_TEST_HOME");
+  SETUP_CFG (plugin_name, cfg_name);
   res = 1;
   if (0 !=
       GNUNET_TESTING_peer_run ("test-namestore-api-remove",