diff options
author | Christian Grothoff <christian@grothoff.org> | 2013-07-17 20:26:02 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2013-07-17 20:26:02 +0000 |
commit | aabe756fa2d764481c337060d27ff03c74b9e320 (patch) | |
tree | 4f0f5222a0e8cab9d7e99ca6a0f16c6752562472 /src/identity/test_identity.c | |
parent | 4fbefa9b5336452df611c4f02232a45caa1d0e6f (diff) | |
download | gnunet-aabe756fa2d764481c337060d27ff03c74b9e320.tar.gz gnunet-aabe756fa2d764481c337060d27ff03c74b9e320.zip |
-misc bugfixes and test-fixes
Diffstat (limited to 'src/identity/test_identity.c')
-rw-r--r-- | src/identity/test_identity.c | 13 |
1 files changed, 4 insertions, 9 deletions
diff --git a/src/identity/test_identity.c b/src/identity/test_identity.c index f97b469f4..60c6c2dad 100644 --- a/src/identity/test_identity.c +++ b/src/identity/test_identity.c | |||
@@ -226,19 +226,13 @@ success_rename_cont (void *cls, | |||
226 | * Called with events about created ego. | 226 | * Called with events about created ego. |
227 | * | 227 | * |
228 | * @param cls NULL | 228 | * @param cls NULL |
229 | * @param ego ego handle | 229 | * @param emsg error message |
230 | * @param ego_ctx context for application to store data for this ego | ||
231 | * (during the lifetime of this process, initially NULL) | ||
232 | * @param identifier identifier assigned by the user for this ego, | ||
233 | * NULL if the user just deleted the ego and it | ||
234 | * must thus no longer be used | ||
235 | */ | 230 | */ |
236 | static void | 231 | static void |
237 | create_cb (void *cls, | 232 | create_cb (void *cls, |
238 | struct GNUNET_IDENTITY_Ego *ego, | 233 | const char *emsg) |
239 | void **ctx, | ||
240 | const char *identifier) | ||
241 | { | 234 | { |
235 | GNUNET_assert (NULL == emsg); | ||
242 | op = GNUNET_IDENTITY_rename (h, | 236 | op = GNUNET_IDENTITY_rename (h, |
243 | "test-id", | 237 | "test-id", |
244 | "test", | 238 | "test", |
@@ -274,6 +268,7 @@ run (void *cls, | |||
274 | int | 268 | int |
275 | main (int argc, char *argv[]) | 269 | main (int argc, char *argv[]) |
276 | { | 270 | { |
271 | GNUNET_DISK_directory_remove ("/tmp/test-identity-service"); | ||
277 | res = 1; | 272 | res = 1; |
278 | if (0 != | 273 | if (0 != |
279 | GNUNET_TESTING_service_run ("test-identity", | 274 | GNUNET_TESTING_service_run ("test-identity", |