aboutsummaryrefslogtreecommitdiff
path: root/src/util/test_disk.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2013-10-09 10:05:42 +0000
committerChristian Grothoff <christian@grothoff.org>2013-10-09 10:05:42 +0000
commit2032baa561c7fefbe2605f5d6b979a295a61637d (patch)
tree2c2a2f1c92940a51ccb565c8fdc1b381a68d8bb4 /src/util/test_disk.c
parent0f6f7fdb0ee4172951f8cb1431d2e457a4b83716 (diff)
downloadgnunet-2032baa561c7fefbe2605f5d6b979a295a61637d.tar.gz
gnunet-2032baa561c7fefbe2605f5d6b979a295a61637d.zip
migrating towards XDG configuration specification (#3000)
Diffstat (limited to 'src/util/test_disk.c')
-rw-r--r--src/util/test_disk.c22
1 files changed, 0 insertions, 22 deletions
diff --git a/src/util/test_disk.c b/src/util/test_disk.c
index 7579ac7dc..40e6b079c 100644
--- a/src/util/test_disk.c
+++ b/src/util/test_disk.c
@@ -169,27 +169,6 @@ testDirIter ()
169 169
170 170
171static int 171static int
172testGetHome ()
173{
174 struct GNUNET_CONFIGURATION_Handle *cfg;
175 char *fn;
176 int ret;
177
178 cfg = GNUNET_CONFIGURATION_create ();
179 GNUNET_assert (cfg != NULL);
180 GNUNET_CONFIGURATION_set_value_string (cfg, "service", "HOME",
181 "/tmp/test-gnunet-disk-a/b/c");
182 fn = GNUNET_DISK_get_home_filename (cfg, "service", "d", "e", NULL);
183 GNUNET_assert (fn != NULL);
184 GNUNET_CONFIGURATION_destroy (cfg);
185 ret = strcmp ("/tmp/test-gnunet-disk-a/b/c/d/e", fn);
186 GNUNET_free (fn);
187 GNUNET_break (GNUNET_OK ==
188 GNUNET_DISK_directory_remove ("/tmp/test-gnunet-disk-a"));
189 return ret;
190}
191
192static int
193testCanonicalize () 172testCanonicalize ()
194{ 173{
195 char *fn = GNUNET_strdup ("ab?><|cd*ef:/g\""); 174 char *fn = GNUNET_strdup ("ab?><|cd*ef:/g\"");
@@ -246,7 +225,6 @@ main (int argc, char *argv[])
246 failureCount += testOpenClose (); 225 failureCount += testOpenClose ();
247 failureCount += testDirScan (); 226 failureCount += testDirScan ();
248 failureCount += testDirIter (); 227 failureCount += testDirIter ();
249 failureCount += testGetHome ();
250 failureCount += testCanonicalize (); 228 failureCount += testCanonicalize ();
251 failureCount += testChangeOwner (); 229 failureCount += testChangeOwner ();
252 failureCount += testDirMani (); 230 failureCount += testDirMani ();