diff options
author | Christian Grothoff <christian@grothoff.org> | 2010-04-05 21:28:05 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2010-04-05 21:28:05 +0000 |
commit | ee2772f80cd28ba069df96a2dfac78b985f1edc6 (patch) | |
tree | a3625283ff0149afc8b36afe960a84f4f07ae55c /src/fs/test_fs_namespace.c | |
parent | 8fd0de5147610235fe80e4423f7519e531266c5f (diff) | |
download | gnunet-ee2772f80cd28ba069df96a2dfac78b985f1edc6.tar.gz gnunet-ee2772f80cd28ba069df96a2dfac78b985f1edc6.zip |
additional tests
Diffstat (limited to 'src/fs/test_fs_namespace.c')
-rw-r--r-- | src/fs/test_fs_namespace.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/fs/test_fs_namespace.c b/src/fs/test_fs_namespace.c index 2f3aabbf6..91306a64c 100644 --- a/src/fs/test_fs_namespace.c +++ b/src/fs/test_fs_namespace.c | |||
@@ -303,8 +303,8 @@ sks_cont (void *cls, | |||
303 | 303 | ||
304 | static void | 304 | static void |
305 | adv_cont (void *cls, | 305 | adv_cont (void *cls, |
306 | const struct GNUNET_FS_Uri *uri, | 306 | const struct GNUNET_FS_Uri *uri, |
307 | const char *emsg) | 307 | const char *emsg) |
308 | { | 308 | { |
309 | struct GNUNET_CONTAINER_MetaData *meta; | 309 | struct GNUNET_CONTAINER_MetaData *meta; |
310 | struct GNUNET_FS_Namespace *ns; | 310 | struct GNUNET_FS_Namespace *ns; |
@@ -361,6 +361,7 @@ testNamespace () | |||
361 | struct GNUNET_FS_Namespace *ns; | 361 | struct GNUNET_FS_Namespace *ns; |
362 | struct GNUNET_TIME_Absolute expiration; | 362 | struct GNUNET_TIME_Absolute expiration; |
363 | struct GNUNET_CONTAINER_MetaData *meta; | 363 | struct GNUNET_CONTAINER_MetaData *meta; |
364 | struct GNUNET_FS_Uri *ksk_uri; | ||
364 | int ok; | 365 | int ok; |
365 | 366 | ||
366 | ns = GNUNET_FS_namespace_create (fs, | 367 | ns = GNUNET_FS_namespace_create (fs, |
@@ -378,13 +379,16 @@ testNamespace () | |||
378 | fprintf (stderr, "Advertising namespace root...\n"); | 379 | fprintf (stderr, "Advertising namespace root...\n"); |
379 | expiration = GNUNET_TIME_relative_to_absolute (GNUNET_TIME_UNIT_MINUTES); | 380 | expiration = GNUNET_TIME_relative_to_absolute (GNUNET_TIME_UNIT_MINUTES); |
380 | meta = GNUNET_CONTAINER_meta_data_create (); | 381 | meta = GNUNET_CONTAINER_meta_data_create (); |
382 | ksk_uri = GNUNET_FS_uri_parse ("gnunet://fs/ksk/testnsa", NULL); | ||
381 | GNUNET_FS_namespace_advertise (fs, | 383 | GNUNET_FS_namespace_advertise (fs, |
384 | ksk_uri, | ||
382 | ns, | 385 | ns, |
383 | meta, | 386 | meta, |
384 | 1, 1, | 387 | 1, 1, |
385 | expiration, | 388 | expiration, |
386 | "root", | 389 | "root", |
387 | &adv_cont, NULL); | 390 | &adv_cont, NULL); |
391 | GNUNET_FS_uri_destroy (ksk_uri); | ||
388 | GNUNET_FS_namespace_delete (ns, GNUNET_NO); | 392 | GNUNET_FS_namespace_delete (ns, GNUNET_NO); |
389 | GNUNET_CONTAINER_meta_data_destroy (meta); | 393 | GNUNET_CONTAINER_meta_data_destroy (meta); |
390 | } | 394 | } |