[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] r30250 - gnunet/src/namestore
From: |
gnunet |
Subject: |
[GNUnet-SVN] r30250 - gnunet/src/namestore |
Date: |
Thu, 17 Oct 2013 11:32:49 +0200 |
Author: grothoff
Date: 2013-10-17 11:32:48 +0200 (Thu, 17 Oct 2013)
New Revision: 30250
Modified:
gnunet/src/namestore/test_namestore_api_remove_not_existing_record.c
gnunet/src/namestore/test_namestore_api_zone_iteration.c
Log:
-fix testcases
Modified: gnunet/src/namestore/test_namestore_api_remove_not_existing_record.c
===================================================================
--- gnunet/src/namestore/test_namestore_api_remove_not_existing_record.c
2013-10-17 09:30:02 UTC (rev 30249)
+++ gnunet/src/namestore/test_namestore_api_remove_not_existing_record.c
2013-10-17 09:32:48 UTC (rev 30250)
@@ -108,17 +108,6 @@
}
else if (GNUNET_OK == success)
{
- GNUNET_break (0);
- GNUNET_log (GNUNET_ERROR_TYPE_ERROR,
- "Namestore did remove not exisiting record: `%s'\n",
- emsg);
- GNUNET_SCHEDULER_shutdown ();
- return;
- }
- else
- {
- GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
- "Name was not removed\n");
res = 0;
if (endbadly_task != GNUNET_SCHEDULER_NO_TASK)
{
@@ -144,7 +133,9 @@
"zonefiles%s%s",
DIR_SEPARATOR_STR,
"N0UJMP015AFUNR2BTNM3FKPBLG38913BL8IDMCO2H0A1LIB81960.zkey");
- GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "Using zonekey file `%s' \n",
hostkey_file);
+ GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
+ "Using zonekey file `%s' \n",
+ hostkey_file);
privkey = GNUNET_CRYPTO_ecdsa_key_create_from_file (hostkey_file);
GNUNET_free (hostkey_file);
GNUNET_assert (privkey != NULL);
@@ -153,7 +144,8 @@
nsh = GNUNET_NAMESTORE_connect (cfg);
GNUNET_break (NULL != nsh);
nsqe = GNUNET_NAMESTORE_records_store (nsh, privkey, name,
- 0, NULL, &put_cont, (void *) name);
+ 0, NULL,
+ &put_cont, (void *) name);
if (NULL == nsqe)
{
GNUNET_log (GNUNET_ERROR_TYPE_ERROR,
Modified: gnunet/src/namestore/test_namestore_api_zone_iteration.c
===================================================================
--- gnunet/src/namestore/test_namestore_api_zone_iteration.c 2013-10-17
09:30:02 UTC (rev 30249)
+++ gnunet/src/namestore/test_namestore_api_zone_iteration.c 2013-10-17
09:32:48 UTC (rev 30250)
@@ -440,6 +440,7 @@
main (int argc, char *argv[])
{
res = 1;
+ GNUNET_DISK_directory_remove ("/tmp/test-gnunet-namestore");
if (0 !=
GNUNET_TESTING_peer_run ("test-namestore-api-zone-iteration",
"test_namestore_api.conf",
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] r30250 - gnunet/src/namestore,
gnunet <=