aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/fs/test_fs_directory.c2
-rw-r--r--src/fs/test_fs_uri.c19
2 files changed, 16 insertions, 5 deletions
diff --git a/src/fs/test_fs_directory.c b/src/fs/test_fs_directory.c
index 9783e5903..35a2f4849 100644
--- a/src/fs/test_fs_directory.c
+++ b/src/fs/test_fs_directory.c
@@ -117,6 +117,8 @@ testDirectory (unsigned int i)
117 } 117 }
118 GNUNET_free (mds); 118 GNUNET_free (mds);
119 GNUNET_free (uris); 119 GNUNET_free (uris);
120 GNUNET_free (emsg);
121 GNUNET_CONTAINER_meta_data_destroy (meta);
120 ABORT (); /* error in testcase */ 122 ABORT (); /* error in testcase */
121 } 123 }
122 } 124 }
diff --git a/src/fs/test_fs_uri.c b/src/fs/test_fs_uri.c
index b6715cb14..732f868e8 100644
--- a/src/fs/test_fs_uri.c
+++ b/src/fs/test_fs_uri.c
@@ -43,7 +43,10 @@ testKeyword ()
43 GNUNET_free (emsg); 43 GNUNET_free (emsg);
44 ret = GNUNET_FS_uri_parse ("gnunet://fs/ksk/foo+bar", &emsg); 44 ret = GNUNET_FS_uri_parse ("gnunet://fs/ksk/foo+bar", &emsg);
45 if (ret == NULL) 45 if (ret == NULL)
46 ABORT (); 46 {
47 GNUNET_free (emsg);
48 ABORT ();
49 }
47 if (!GNUNET_FS_uri_test_ksk (ret)) 50 if (!GNUNET_FS_uri_test_ksk (ret))
48 { 51 {
49 GNUNET_FS_uri_destroy (ret); 52 GNUNET_FS_uri_destroy (ret);
@@ -160,8 +163,8 @@ testNamespace (int i)
160 ABORT (); 163 ABORT ();
161 GNUNET_free (emsg); 164 GNUNET_free (emsg);
162 if (NULL != 165 if (NULL !=
163 GNUNET_FS_uri_parse ("gnunet://fs/sks/D1KJS9H2A82Q65VKQ0ML3RFU6U1D3V/test", &emsg)) 166 GNUNET_FS_uri_parse ("gnunet://fs/sks/D1KJS9H2A82Q65VKQ0ML3RFU6U1D3V/test", &emsg))
164 ABORT (); 167 ABORT ();
165 GNUNET_free (emsg); 168 GNUNET_free (emsg);
166 if (NULL != GNUNET_FS_uri_parse ("gnunet://fs/sks/test", &emsg)) 169 if (NULL != GNUNET_FS_uri_parse ("gnunet://fs/sks/test", &emsg))
167 ABORT (); 170 ABORT ();
@@ -169,7 +172,10 @@ testNamespace (int i)
169 ret = 172 ret =
170 GNUNET_FS_uri_parse ("gnunet://fs/sks/C282GG70GKK41O4551011DO413KFBVTVMQG1OG30I0K4045N0G41HAPB82G680A02JRVVFO8URVRU2F159011DO41000000022RG820/test", &emsg); 173 GNUNET_FS_uri_parse ("gnunet://fs/sks/C282GG70GKK41O4551011DO413KFBVTVMQG1OG30I0K4045N0G41HAPB82G680A02JRVVFO8URVRU2F159011DO41000000022RG820/test", &emsg);
171 if (ret == NULL) 174 if (ret == NULL)
172 ABORT (); 175 {
176 GNUNET_free (emsg);
177 ABORT ();
178 }
173 if (GNUNET_FS_uri_test_ksk (ret)) 179 if (GNUNET_FS_uri_test_ksk (ret))
174 { 180 {
175 GNUNET_FS_uri_destroy (ret); 181 GNUNET_FS_uri_destroy (ret);
@@ -216,7 +222,10 @@ testFile (int i)
216 ret = 222 ret =
217 GNUNET_FS_uri_parse ("gnunet://fs/chk/C282GG70GKK41O4551011DO413KFBVTVMQG1OG30I0K4045N0G41HAPB82G680A02JRVVFO8URVRU2F159011DO41000000022RG820.RNVVVVOOLCLK065B5D04HTNVNSIB2AI022RG8200HSLK1CO1000ATQ98824DMA2032LIMG50CG0K057NVUVG200000H000004400000.42", &emsg); 223 GNUNET_FS_uri_parse ("gnunet://fs/chk/C282GG70GKK41O4551011DO413KFBVTVMQG1OG30I0K4045N0G41HAPB82G680A02JRVVFO8URVRU2F159011DO41000000022RG820.RNVVVVOOLCLK065B5D04HTNVNSIB2AI022RG8200HSLK1CO1000ATQ98824DMA2032LIMG50CG0K057NVUVG200000H000004400000.42", &emsg);
218 if (ret == NULL) 224 if (ret == NULL)
219 ABORT (); 225 {
226 GNUNET_free (emsg);
227 ABORT ();
228 }
220 if (GNUNET_FS_uri_test_ksk (ret)) 229 if (GNUNET_FS_uri_test_ksk (ret))
221 { 230 {
222 GNUNET_FS_uri_destroy (ret); 231 GNUNET_FS_uri_destroy (ret);