diff options
author | Christian Grothoff <christian@grothoff.org> | 2013-10-17 09:32:48 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2013-10-17 09:32:48 +0000 |
commit | c289646ae19f0f64c4e270c172a51c6ce07eaa24 (patch) | |
tree | cc0fde39c0605f9001f10b24c590d086fecd299b /src/namestore/test_namestore_api_remove_not_existing_record.c | |
parent | ebfdd8ee795b77891b51f25cc86c3a5f55d08851 (diff) | |
download | gnunet-c289646ae19f0f64c4e270c172a51c6ce07eaa24.tar.gz gnunet-c289646ae19f0f64c4e270c172a51c6ce07eaa24.zip |
-fix testcases
Diffstat (limited to 'src/namestore/test_namestore_api_remove_not_existing_record.c')
-rw-r--r-- | src/namestore/test_namestore_api_remove_not_existing_record.c | 18 |
1 files changed, 5 insertions, 13 deletions
diff --git a/src/namestore/test_namestore_api_remove_not_existing_record.c b/src/namestore/test_namestore_api_remove_not_existing_record.c index 0e7cc6b33..362a18082 100644 --- a/src/namestore/test_namestore_api_remove_not_existing_record.c +++ b/src/namestore/test_namestore_api_remove_not_existing_record.c | |||
@@ -108,17 +108,6 @@ put_cont (void *cls, int32_t success, const char *emsg) | |||
108 | } | 108 | } |
109 | else if (GNUNET_OK == success) | 109 | else if (GNUNET_OK == success) |
110 | { | 110 | { |
111 | GNUNET_break (0); | ||
112 | GNUNET_log (GNUNET_ERROR_TYPE_ERROR, | ||
113 | "Namestore did remove not exisiting record: `%s'\n", | ||
114 | emsg); | ||
115 | GNUNET_SCHEDULER_shutdown (); | ||
116 | return; | ||
117 | } | ||
118 | else | ||
119 | { | ||
120 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, | ||
121 | "Name was not removed\n"); | ||
122 | res = 0; | 111 | res = 0; |
123 | if (endbadly_task != GNUNET_SCHEDULER_NO_TASK) | 112 | if (endbadly_task != GNUNET_SCHEDULER_NO_TASK) |
124 | { | 113 | { |
@@ -144,7 +133,9 @@ run (void *cls, | |||
144 | "zonefiles%s%s", | 133 | "zonefiles%s%s", |
145 | DIR_SEPARATOR_STR, | 134 | DIR_SEPARATOR_STR, |
146 | "N0UJMP015AFUNR2BTNM3FKPBLG38913BL8IDMCO2H0A1LIB81960.zkey"); | 135 | "N0UJMP015AFUNR2BTNM3FKPBLG38913BL8IDMCO2H0A1LIB81960.zkey"); |
147 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "Using zonekey file `%s' \n", hostkey_file); | 136 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, |
137 | "Using zonekey file `%s' \n", | ||
138 | hostkey_file); | ||
148 | privkey = GNUNET_CRYPTO_ecdsa_key_create_from_file (hostkey_file); | 139 | privkey = GNUNET_CRYPTO_ecdsa_key_create_from_file (hostkey_file); |
149 | GNUNET_free (hostkey_file); | 140 | GNUNET_free (hostkey_file); |
150 | GNUNET_assert (privkey != NULL); | 141 | GNUNET_assert (privkey != NULL); |
@@ -153,7 +144,8 @@ run (void *cls, | |||
153 | nsh = GNUNET_NAMESTORE_connect (cfg); | 144 | nsh = GNUNET_NAMESTORE_connect (cfg); |
154 | GNUNET_break (NULL != nsh); | 145 | GNUNET_break (NULL != nsh); |
155 | nsqe = GNUNET_NAMESTORE_records_store (nsh, privkey, name, | 146 | nsqe = GNUNET_NAMESTORE_records_store (nsh, privkey, name, |
156 | 0, NULL, &put_cont, (void *) name); | 147 | 0, NULL, |
148 | &put_cont, (void *) name); | ||
157 | if (NULL == nsqe) | 149 | if (NULL == nsqe) |
158 | { | 150 | { |
159 | GNUNET_log (GNUNET_ERROR_TYPE_ERROR, | 151 | GNUNET_log (GNUNET_ERROR_TYPE_ERROR, |