aboutsummaryrefslogtreecommitdiff
path: root/src/fs/test_fs_uri.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2009-10-20 20:09:12 +0000
committerChristian Grothoff <christian@grothoff.org>2009-10-20 20:09:12 +0000
commit0739d489fc5e082000fbd3d5c1bfaf17e1cf9533 (patch)
tree9b69cb88d933762aadaad8ad304373f618d984e0 /src/fs/test_fs_uri.c
parentc4f53936ee31140530d711fc79fcdf1464a6539f (diff)
downloadgnunet-0739d489fc5e082000fbd3d5c1bfaf17e1cf9533.tar.gz
gnunet-0739d489fc5e082000fbd3d5c1bfaf17e1cf9533.zip
minor fixes
Diffstat (limited to 'src/fs/test_fs_uri.c')
-rw-r--r--src/fs/test_fs_uri.c19
1 files changed, 14 insertions, 5 deletions
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);