delete correct dir
authorChristian Grothoff <christian@grothoff.org>
Mon, 26 Oct 2009 12:03:02 +0000 (12:03 +0000)
committerChristian Grothoff <christian@grothoff.org>
Mon, 26 Oct 2009 12:03:02 +0000 (12:03 +0000)
src/fs/test_fs_directory.c
src/fs/test_fs_list_indexed.c

index 35a2f48495f44b43e82c551500378fd0b6f5513c..d1ef263edb45eacc32137bc5ce624e89a9c20b88 100644 (file)
@@ -106,6 +106,7 @@ testDirectory (unsigned int i)
                        sizeof(uri),
                        "gnunet://fs/chk/C282GG70GKK41O4551011DO413KFBVTVMQG1OG30I0K4045N0G41HAPB82G680A02JRVVFO8URVRU2F159011DO41000000022RG820.RNVVVVOOLCLK065B5D04HTNVNSIB2AI022RG8200HSLK1CO1000ATQ98824DMA2032LIMG50CG0K057NVUVG200000H000004400000.%u",
                        p);
+      emsg = NULL;
       uris[p] = GNUNET_FS_uri_parse (uri, &emsg);
       if (uris[p] == NULL)
         {
@@ -121,6 +122,7 @@ testDirectory (unsigned int i)
          GNUNET_CONTAINER_meta_data_destroy (meta);
           ABORT ();             /* error in testcase */
         }
+      GNUNET_assert (emsg == NULL);
     }
   start = GNUNET_TIME_absolute_get ();
   db = GNUNET_FS_directory_builder_create (meta);
index 6044e69552df673ed69c3e5b12dcdc323910e435..46928044549e216040ce1891c9bfdf6ea04da0e9 100644 (file)
@@ -347,7 +347,7 @@ main (int argc, char *argv[])
                       argvx, "test-fs-list_indexed",
                      "nohelp", options, &run, NULL);
   stop_arm (&p1);
-  GNUNET_DISK_directory_remove ("/tmp/gnunet-test-fs-list_indexed/");
+  GNUNET_DISK_directory_remove ("/tmp/gnunet-test-fs-list-indexed/");
   GNUNET_DISK_directory_remove (fn1);
   GNUNET_free_non_null (fn1);
   GNUNET_DISK_directory_remove (fn2);